简体   繁体   English

H2O是否可以与node.js一起使用(Electron应用程序中的独立/离线)

[英]Can H2O be used with node.js (standalone/offline in Electron app)

Does h2o-3 have node.js bindings? h2o-3是否具有node.js绑定? I found https://github.com/h2oai/h2o.js but when I saw no updates in two years I realized it was for h2o v2. 我找到了https://github.com/h2oai/h2o.js,但是两年内没有任何更新时,我意识到这是针对h2o v2的。

I'm specifically asking about deploying a POJO/MOJO jar file, in the context of an Electron app. 我特别询问在电子应用程序的上下文中部署POJO / MOJO jar文件的问题。 Ie offline, not using the REST API to communicate back to a server. 即离线,不使用REST API通讯回服务器。 (Maybe my question is more: could I use the h2o.jar, and a pojo/mojo file, with something like https://github.com/joeferner/node-java and expect everything to work together, across each of Linux/Mac/Windows?) (也许我的问题更多:我可以使用h2o.jar和pojo / mojo文件,并使用类似https://github.com/joeferner/node-java的文件,并期望在Linux / Mac / Windows?)

FWIW, TensorFlow integration seems vapourware at the moment: https://github.com/node-tensorflow/node-tensorflow , but MxNet seems to have something working: https://github.com/dmlc/mxnet.js/ So, if H2O pojo/mojo can be used from within node.js apps, could Deep Water models also work? FWIW,目前TensorFlow集成似乎是蒸气软件: https : //github.com/node-tensorflow/node-tensorflow ,但是MxNet似乎有一些作用: https : //github.com/dmlc/mxnet.js/如果可以在node.js应用程序中使用H2O pojo / mojo,则Deep Water模型也可以工作吗?

H2O does not have node.js bindings, but H2O exposes a well documented REST API. H2O没有node.js绑定,但是H2O公开了一个有据可查的REST API。 From Electron, you can start H2O using the child_process module, then talk to H2O using the REST API. 在Electron中,您可以使用child_process模块启动H2O,然后使用REST API与H2O对话。 If you only care about embedding the model in your Electron app, you can self host the model in a java process using node-java (if you are building some kind of a desktop-only application), OR you can have the Electron app talk to a local or remote http server that hosts the model (see https://github.com/h2oai/app-consumer-loan ) 如果您只想将模型嵌入到Electron应用程序中,则可以使用node-java在Java进程中自行托管模型(如果您正在构建某种仅用于桌面的应用程序),或者可以进行Electron应用程序讨论到托管模型的本地或远程http服务器(请参阅https://github.com/h2oai/app-consumer-loan

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

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