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

Testing the model on AWS SageMaker notebook

We are now able to deploy the final endpoint. From Jupyter Notebook, we can deploy the model with the following command:

predictor = model.deploy(initial_instance_count=1,instance_type='ml.m4.xlarge', endpoint_name='iiot-book-rul-predictor')

We can test the model by passing the CSV test file as an input:

import sagemakerfrom sagemaker.predictor import csv_serializer, json_deserializer#Use the following line to get a preditor by attaching to an existing endpoint#linear_predictor = sagemaker.predictor.RealTimePredictor('<endpoint name>')predictor.content_type = 'text/csv'predictor.serializer = csv_serializerresult = predictor.predict(dataset_test.values).decode('utf-8')print(result)

The output will ...

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