SageMaker notebook instance

Launch a SageMaker notebook instance

Amazon SageMaker is a managed machine learning service. It contains a powerful set of tools that support advanced use cases like training and hyperparameter tuning for custom machine learning models. But SageMaker also provides hosted Jupyter notebook instances, which are a great way to experiment with machine learning in an interactive way. In this tutorial, you will use a notebook to train an RL agent locally and then launch a hyperparameter tuning job.

To launch a SageMaker notebook instance:

  1. Navigate to the Amazon SageMaker console.

  2. Click Create notebook instance.

  3. Give the notebook instance a unique name, like game-leveling-tutorial. All defaults in Notebook instance settings can be left alone.

  4. In the IAM role drop down menu under Permissions and encryption, choose Create a new role.

  5. Under Specific S3 buckets choose None.

  6. Start the notebook instance by choosing Create notebook instance.

  7. Back in the Notebook instances view of the SageMaker console, the Status will change to ‘InService’ when the notebook instance is ready. Now, choose Open Jupyter.

  8. Start a new Jupyter notebook by clicking on the New dropdown menu and selecting conda_pytorch_p36.

  9. Give your notebook a name by clicking the title – it should say Untitled at first. Enter a name that you can remember and choose Rename.

It’s important to open Jupyter and not JupyterLab. This tutorial uses IPython widgets that don’t render correctly in JupyterLab.