Neptune-Amazon SageMaker Integration¶
You can use Neptune to track experiments that you run on Amazon SageMaker.
To set this up, perform the following steps:
Register to AWS.
Follow the instructions to create your AWS account.
Create Lifecycle configuration.
Go to SageMaker Lifecycle configurations and click Create configuration.
You can choose whatever name you want – just make sure to remember it.
Modify the Create Notebook script to run it only once at the creation of your SageMaker Notebook instance.
Copy and paste the script below to your Create Notebook tab.
In the PARAMETERS section, choose in which environments you want to install neptune-client.
#!/bin/bash set -e sudo -u ec2-user -i <<'EOF' # PARAMETERS ENVS=( python3 pytorch_p36 ) # Install Neptune client library for env in $ENVS; do source /home/ec2-user/anaconda3/bin/activate $env pip install neptune-client source /home/ec2-user/anaconda3/bin/deactivate done # Install jupyter extension source /home/ec2-user/anaconda3/bin/activate JupyterSystemEnv pip install neptune-notebooks jupyter nbextension enable --py neptune-notebooks --sys-prefix jupyter labextension install neptune-notebooks source /home/ec2-user/anaconda3/bin/deactivate EOF
Create a Notebook instance.
You can now version your Notebooks and track experiments in Amazon SageMaker with Neptune!