Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Spark Model to use in Java Application

For analysis. I know we can use the Save function and load the Model in Spark application. But it works only in Spark application (Java, Scala, Python).

We can also use the PMML and export the model to other type of application.

Is there any way to use a Spark model in a Java application?

like image 327
SirGustave Avatar asked Oct 18 '22 13:10

SirGustave


1 Answers

I am one of the creators of MLeap. Check us out, it is meant for exactly your use case. If there is a transformer you need that is not currently supported, get in touch with me and we will get it in there.

Our serialization format is solely JSON/Protobuf right now, so it is very portable and supports large models like RandomForest. You can serialize your model to a zip file then load it up wherever.

Take a look at our demo to get a use case: https://github.com/TrueCar/mleap-demo

like image 83
Hollin Wilkins Avatar answered Nov 03 '22 22:11

Hollin Wilkins