- Visit https://github.com/awslabs/amazon-sagemaker-examples, at the bottom of the page you will find a link to create an Amazon SageMaker notebook
- Follow the instructions using an
ml.m5.2xlarge
instance type. - When the notebook has been created click
Open JupyterLab
.
Clone the Amazon SageMaker Examples to your notebook from GitHub.
- With the JupyterLab console open click Git from the menu and select Clone
- Paste the GitHub project url: https://github.com/awslabs/amazon-sagemaker-examples.git and click Clone
In the JupyterLab interface, in the file browser on the left, navigate to the project located in
amazon-sagemaker-examples/sagemaker-python-sdk/scikit_learn_inference_pipeline
In this directory open the Python Notebook to begin the lab. Take note of the functions and structure of the sklearn_abalone_featurizer.py
script which contains the feature engineering logic for the pipeline model.
In this lab you will create a customized TensorFlow container to host your training and model hosting code. After you create the container you will push it to Amazon ECR where SageMaker will use the container to carry out your training and hosting jobs.
In the JupyterLab interface, in the file browser on the left, navigate to the project located in
amazon-sagemaker-examples/advanced_functionality/tensorflow_bring_your_own
In this directory open the Python Notebook to begin the lab.
In this lab you will specify the number of EC2 instances to be used to create a training cluster to performed distributed training of a PyTorch algorithm using Horovod.
In the JupyterLab interface, in the file browser on the left, navigate to the project located in
amazon-sagemaker-examples/sagemaker-python-sdk/pytorch_horovod_mnist
In this directory open the Python Notebook to begin the lab.
https://github.com/awslabs/sagemaker-graph-fraud-detection
To obtain the default S3 bucket name:
session = sagemaker.session.Session ()
bucket = session.default_bucket ()
Pandas DataFrame, replace as_matrix
with values
Pandas DataFrame, replace reshape
with values.reshape