Develop a custom experiment tracker

Learning how to develop a custom experiment tracker.

Before diving into the specifics of this component type, it is beneficial to familiarize yourself with our general guide to writing custom component flavors in ZenML. This guide provides an essential understanding of ZenML's component flavor concepts.

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:

  1. Create a class that inherits from the BaseExperimentTracker class and implements the abstract methods.

  2. If you need any configuration, create a class that inherits from the BaseExperimentTrackerConfig class and add your configuration parameters.

  3. Bring both the implementation and the configuration together by inheriting from the BaseExperimentTrackerFlavor class.

Once you are done with the implementation, you can register it through the CLI. Please ensure you point to the flavor class via dot notation:

zenml experiment-tracker flavor register <path.to.MyExperimentTrackerFlavor>

For example, if your flavor class MyExperimentTrackerFlavor is defined in flavors/my_flavor.py, you'd register it by doing:

zenml experiment-tracker flavor register flavors.my_flavor.MyExperimentTrackerFlavor

Afterward, you should see the new flavor in the list of available flavors:

zenml experiment-tracker flavor list
ZenML Scarf

Last updated

Was this helpful?