Log model metadata#
Manage model metadata with experiments
We recommend using runs to manage model metadata. Runs come with extra features such as group tags, custom views, and dashboards, offering rich comparison and visualization support.
For details, see Logging model metadata with runs.
To log your model metadata:
-
Initialize the
run
object:You can customize the behavior and tracking through
init_run()
arguments.For details, see Create a run.
-
Upload the model signature and other data with the
upload()
method:run["model/signature"].upload("model_signature.json") run["data/sample"].upload("datasets/sample.csv")
For details, see Files.
-
Track dataset versions with the
track_files()
method: -
To record such metadata as the model stage or version, use tags or group tags:
-
To stop the connection to Neptune and sync all data, call the
stop()
method and execute the script:
To view the logged metadata in the Neptune app, click the link in the console output.
See also
Log separately from training metadata#
You can track the model metadata separately from the training metadata by creating dedicated runs. Then, you can connect the runs that store the model metadata with related experiments. This approach makes sense if your model is trained, retrained, or evaluated across multiple runs.
To link the related runs, assign their IDs or URLs to selected fields of another run: