How to add tags to experiments?

Problem

I want to add tags to the experiments. What are the options?

Solution

There are four options to do so.

Configuration file

Go to your neptune.yaml config file and add tags section:

1
tags: [lightgbm, features_v1, cleaning_v3]

Command line

When running your script, simply add --tag NAME to it:

1
neptune run --tag augmentations --tag dev_mode --config neptune.yaml main.py
Note that you should add it after Neptune run/send, and before main.py (script that is being executed)

Programatically

You can add or remove tags directly from your script. For example:

1
2
3
4
5
6
import neptune 

ctx = neptune.Context()

ctx.tags.append('resnet18')
ctx.tags.remove('dev_mode')

Web application

Finally, you can always go to your project dashboard, and add/remove tags by clicking on a chosen cell.

tags management in web application

See also