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 locally

We can now start the microservice and perform an HTTP request. From the command line, start the server as follows:

$ cd container/local_test$ docker run -v $(pwd)/test_dir:/opt/ml -p 8080:8080 --rm rul-estimator serve
For your convenience, you can use also the following script: container/local_test/serve_local.sh rul-estimator.

Finally, from the command line, run the following command:

$ curl --data-binary @test.csv -H "Content-Type: text/csv" -v http://localhost:8080/invocations
For your convenience, you can use also the following script: container/local_test/serve_local.sh test.csv.

The expected output will look as follows:

$ < HTTP/1.1 100 Continue$ < Server: nginx/1.10.3 (Ubuntu)$ < $ 113.80298

The residual ...

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