简体   繁体   English

我可以使用由 h2o automl (MOJO) 生成的 model 而不运行 h2o,但只能作为 python model 使用吗?

[英]Can I use a model generated with h2o automl (MOJO) without running h2o, but only as python model?

I created a ML model with h2o's AutoML in Python and exported it as MOJO.我在 Python 中使用 h2o 的 AutoML 创建了一个 ML model 并将其导出为 MOJO。 I know I can run it again in Python when using the h2o package and an h2o server / the java application.我知道当使用 h2o package 和 h2o 服务器/java 应用程序时,我可以在 Python 中再次运行它。

But I was wondering if and how I could convert/transform/use this model without using an h2o server.但我想知道是否以及如何在不使用 h2o 服务器的情况下转换/转换/使用这个 model。 I only want to use h2o for the model generation, but not for running it.我只想将 h2o 用于 model 生成,而不是用于运行它。

Is this even possible, and if yes, how?这甚至可能吗?如果可以,怎么做?

Thanks in advance, T0Bi提前致谢,T0Bi

H2O models/MOJOs run on Java and need a JVM. H2O 模型/MOJO 在 Java 上运行,需要 JVM。 Python will still need to run the job in Java. Python 仍需要运行 Java 中的作业。

If you don't want to initialize an H2O server, then the best way is to use Java directly and score with the MOJO.如果不想初始化H2O服务器,那么最好的办法就是直接用Java用MOJO打分。 See more here . 在这里查看更多

Other option is using PySpark to score/predict without initializing an H2O server, but you need Spark set up in that case.其他选项是使用 PySpark 在不初始化 H2O 服务器的情况下进行评分/预测,但在这种情况下您需要设置 Spark。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM