When would you want to use it?
Neptune is a popular platform that you would normally use in the iterative ML experimentation phase to track and visualize experiment results. Neptune can also track and visualize the results produced by your automated pipeline runs, as you make the transition towards a more production oriented workflow. You should use the Neptune Experiment Tracker:- if you have already been using neptune.ai to track experiment results for your project and would like to continue doing so as you are incorporating MLOps workflows and best practices in your project through ZenML.
- if you are looking for a more visually interactive way of navigating the results produced from your ZenML pipeline runs (e.g. models, metrics, datasets)
- if you would like to connect ZenML to neptune.ai to share the artifacts and metrics logged by your pipelines with your team, organization or external stakeholders
How do you deploy it?
The Neptune Experiment Tracker flavor is provided by the Neptune-ZenML integration. You need to install it on your local machine to be able to register the Neptune Experiment Tracker and add it to your stack:Authentication Methods
You need to configure the following credentials for authentication to Neptune:-
api_token
: API key token of your Neptune account. If left blank, Neptune will attempt to retrieve it from your environment variables. -
project
: The name of the project where you’re sending the new run, in the form “workspace-name/project-name”. If the project is not specified, Neptune will attempt to retrieve it from your environment variables.
zenml secret register
command:
How do you use it?
To log information from a ZenML pipeline step using the Neptune Experiment Tracker component in the active stack, you need to enable an experiment tracker using the@step
decorator. Then fetch the Neptune run object and use logging capabilities as you would normally do. For example:
Additional configuration
You can pass a set of tags to the Neptune run by using theNeptuneExperimentTrackerSettings
class, like in the example below: