November 2018
Intermediate to advanced
556 pages
14h 42m
English
The first thing to do is to filter your data, removing all engines except for engine one, and saving the new dataset in the S3 bucket that we just created. First, we need to install the dependencies. From the command console, install the AWS Python libraries:
$ pip install boto3$ pip install sagemaker
We can do this either in the online SageMaker Jupyter or in the locally installed Jupyter Notebook:
import boto3import sagemaker#role = 'your username if you run jupyter offline'role = sagemaker.get_execution_role()region = boto3.Session().region_nameprint(region)print(role)# Test bucket name immersionday-sagemaker-testbucket_name = 'iiot-book-data'file_name_train ...