How to send metrics to Neptune?

Problem

How to track multiple metrics (loss, scores) in the experiment?

Solution

Step 1

In order to send metrics, logs, images or parameters to Neptune, you simply need to:

1
2
3
4
5
6
7
import neptune

neptune.init('your_API_token', 'username/my_project')
neptune.create_experiment()

neptune.send_metric('log_loss', 0.753)
# 'log_loss' is User defined metric name

or add a key: value pair using:

1
neptune.set_property('model_score', '0.871')

Step 2

Browse and analyse your metrics on the dashboard (example dashboard) or in the particular experiment (example).

Did you know…

You can create as many metrics as you wish :)

See also