How to re-run experiment?

Problem

I would like to re-run Neptune experiment. How do I do that?

Solution

Step 1

Go to the Details section of your experiment:

image

Step 2

Copy the command that downloads the experiment source code:

image

and run it in your terminal:

1
neptune data download -r --project neptune-ml/Sandbox ../SAN-50/source

Step 3

Go to the source directory:

1
cd source

Step 4

Copy the command that runs the script:

image

and run it in your terminal:

1
neptune run --config neptune.yaml main_lgbm.py

Note

If you were originally running your experiment locally:

  • make sure that you are running the experiment in the same environment. For example:
    1
    source PATH/TO/ENV/bin/activate
    
  • If your experiment used local environmental variables you need to export them before running the script. For example:
    1
    export EXPERIMENT_PATH:my/experiment/folder
    

See also