Build your own custom experiment tracker
If you want to create your own custom flavor for an experiment tracker, you can follow the following steps:- Create a class which inherits from the
BaseExperimentTrackerclass and implement the abstract methods. - If you need any configuration, create a class which inherits from the
BaseExperimentTrackerConfigclass add your configuration parameters. - Bring both of the implementation and the configuration together by inheriting from the
BaseExperimentTrackerFlavorclass.
- The CustomExperimentTrackerFlavor class is imported and utilized upon the creation of the custom flavor through the CLI.
- The CustomExperimentTrackerConfig class is imported when someone tries to register/update a stack component with this custom flavor. Especially, during the registration process of the stack component, the config will be used to validate the values given by the user. As
Configobject are inherentlypydanticobjects, you can also add your own custom validators here. - The CustomExperimentTracker only comes into play when the component is ultimately in use.
CustomExperimentTrackerFlavor and the CustomExperimentTrackerConfig are implemented in a different module/path than the actual CustomExperimentTracker).