Skip to Content
Hands-On Industrial Internet of Things
book

Hands-On Industrial Internet of Things

by Giacomo Veneri, Antonio Capasso
November 2018
Intermediate to advanced
556 pages
14h 42m
English
Packt Publishing
Content preview from Hands-On Industrial Internet of Things

Training the model in AWS SageMaker

During the training process, SageMaker will call the image with the following syntax:

$ docker run <image> train

This syntax is the same as we used during the local test. We can now run our estimator from the SageMaker Notebook. We need to allocate the size of machine, which is ml.m5.xlarge, pass the data, and fit the model:

import sagemaker as sagefrom time import gmtime, strftime# get sage maker accountrole = sage.get_execution_role()print(role)# get sage maker sessionsess = sage.Session()account = sess.boto_session.client('sts').get_caller_identity()['Account']region = sess.boto_session.region_namebucket_name = 'iiot-book-data'image = '{}.dkr.ecr.{}.amazonaws.com/rul-estimator:latest'.format(account, ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Internet of Things

Internet of Things

S. Velliangiri, Sathish A.P. Kumar, P. Karthikeyan
Industrial Internet Application Development

Industrial Internet Application Development

Alena Traukina, Jayant Thomas, Prashant Tyagi, Veera Kishore Reddipalli

Publisher Resources

ISBN: 9781789537222Supplemental Content