In the last article on “How to build a Watson cognitive app using node-JS” we learnt how to get the SPSS model created and make it ready for the machine learning service.In this article we will learn, how to call that machine learning model and get prediction scores on Blue-mix.
This is right time to export the model stream which we generated in the last tutorial, you need to take that .str file and import it into the Machine learning service, To do that you need to bind the machine learning instance
Using Machine learning Model on Blue-mix
Login to the Blue-mix dashboard and create an IOT platform starter app, you can search for the boiler plate from the catalog page.
* In case you don’t have blue-mix access, you can always get a 30 day free trial.
Once your app is created, let it start for a while and click on the URL.
Once you click the URL you will be able to see the Node-Red flow page for that app.
Please note that when we use boiler plate, by default one node-red app is booted in the node JS run time,default memory is 512mb.
We will be connecting our node-red app also to the prediction service and we will also be creating a custom node JS app which will bind to the prediction service.