在Java应用程序中使用的Spark模型 [英] Spark Model to use in Java Application

查看:200
本文介绍了在Java应用程序中使用的Spark模型的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

用于分析. 我知道我们可以使用保存功能并在Spark应用程序中加载模型.但是它仅在Spark应用程序(Java,Scala,Python)中有效.

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).

我们还可以使用PMML并将模型导出到其他类型的应用程序.

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

有什么方法可以在Java应用程序中使用Spark模型?

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

推荐答案

我是MLeap的创建者之一.请查看我们,它完全适合您的用例.如果有您当前不支持的变压器,请与我联系,我们将在那里提供它.

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.

我们的序列化格式目前仅是JSON/Protobuf,因此它具有很高的可移植性,并支持诸如RandomForest之类的大型模型.您可以将模型序列化为zip文件,然后将其加载到任何地方.

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.

看看我们的演示以获取用例: https://github.com/TrueCar/mleap-demo

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

这篇关于在Java应用程序中使用的Spark模型的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆