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

Preparing the environment

We need to prepare our environment as follows:

  1. From the command console, install pandas and numpy with the following commands:
pip install pandaspip install numpypip install matplotlibpip install seabornpip install scipypip install keras
  1. Download NASA's dataset in a folder named, data
  2. In the same directory, create a new file called my_prognostic.py
  3. Finally, write the following lines of code to import the data:
import pandas as pdimport numpy as np# read the datasetcolumns = ['unitid', 'time', 'set_1','set_2','set_3']columns.extend(['sensor_' + str(i) for i in range(1,22)])df = pd.read_csv('./data/train_FD001.txt', delim_whitespace=True,names=columns)print(df.head())
  1. From the command console, run the algorithm: ...
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