H2O MOJO线程安全吗? [英] H2O MOJO thread safe?

查看:78
本文介绍了H2O MOJO线程安全吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用Mojo模型对查询进行评分.我正在使用此语句来使用mojo模型

I am using Mojo model for scoring my queries. I am using this statement to use mojo model

EasyPredictModelWrapper model = new EasyPredictModelWrapper(MojoModel.load("gbm.zip"));

问题是我可以在不同线程中使用此模型对象吗?线程安全吗?

The question is can i use this model object from different threads? Is it thread safe?

推荐答案

是的,带有Easy Wrapper的GBM MOJO(即问题中显示的内容)是线程安全的.

Yes, the GBM MOJO with the Easy Wrapper (i.e. what is shown in the question) is thread-safe.

下面是一个示例,该示例显示了在Java Servlet部署的一部分中在静态块中初始化GBM MOJO模型的情况:

Here is an example showing a GBM MOJO model being initialized in a static block as part of a java servlet deployment:

这篇关于H2O MOJO线程安全吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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