Quantcast
Channel: Active questions tagged rest - Stack Overflow
Viewing all articles
Browse latest Browse all 3637

What is the best way to build and expose a Machine Learning model REST api?

$
0
0

I have been working on designing REST api using springframework and deploying them on web servers like Tomcat. I have also worked on building Machine Learning model and use the model to make prediction using sklearn in Python.Now I have a use case where in I want to expose a REST api which builds Machine Learning Model, and another REST api which makes the prediction. What architecture should help me to achieve this? (An example of the same maybe a Amazon Machine Learning; they have exposed REST api for generating model and making prediction)

I searched round the internet and found following ways:

  1. Write the whole thing in Java - ML model + REST api
  2. Write the whole thing in Python - ML model + REST api

But playing around with Machine Learning, its models and predictions is really easier and more supported in python with libraries like sklearn, rather than Java. I would really like to use python for Machine Learning part.

I was thinking about and approach wherein I write REST api using JAVA but use sub-process to make python ML calls. Will that work?

Can someone help me regarding the probable architectural approaches that I can take? Also please suggest the most feasible solution.


Viewing all articles
Browse latest Browse all 3637

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>