How specify experiment parameters?

Problem

I saw that Neptune logs experiment parameters.

image

But I don’t know how to specify parameters for my experiments.

Solution

You define your parameters at experiment creation, like this:

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
import neptune

# This function assumes that NEPTUNE_API_TOKEN environment variable is defined.
neptune.init('username/my_project')

# check params argument
neptune.create_experiment(name='first-pytorch-ever',
                          params={'dropout': 0.3,
                                  'lr': 0.01,
                                  'nr_epochs': 10})
...
neptune.stop()
Params is Python dict :)