In H2oMojoPreidct, you can perform predictions on MOJO files without the need for H2O initialization or dependency on an H2O cluster. You are free to use Python to make predictions using MOJO files.
Project description
H2oMojoPredict
In H2oMojoPreidct, you can perform predictions on MOJO files without the need for H2O initialization or dependency on an H2O cluster. You are free to use Python to make predictions using MOJO files.
Running
Follow these steps to set up and run :
Prerequisites
- Python 3.7
Installation
pip install H2oMojoPredict
Use demo :
from H2oMojoPredict import H2oMojoPredicto
# 初始化
predictor = H2oMojoPredictor("XGBoost_model_python_1696751279647_2.zip", "binomial")
# 输入数据格式
data = pd.DataFrame({
"os_act_first_diff": [55.0, 100.0],
"life_cycle_string": ['4','3'],
})
# 启动java服务
java_service = predictor.start_java_service()
result = predictor.predict_with_java_service(java_service, data)
print(result)`
# 预测完毕,关闭java服务
java_service.terminate()
java_service.wait()
if java_service.returncode == 0:
print("Java service exited successfully.")
else:
print("Java service exited with an error code:", java_service.returncode)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
H2oMojoPredict-0.1.3.tar.gz
(2.4 MB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file H2oMojoPredict-0.1.3.tar.gz.
File metadata
- Download URL: H2oMojoPredict-0.1.3.tar.gz
- Upload date:
- Size: 2.4 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.7.16
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0910894c5c52af6d8a7fc768391e870d07206e6bbbb8f89745323e3a8a3640e6
|
|
| MD5 |
1cc59b17bd6ee07ee1d679c2b69ff7ec
|
|
| BLAKE2b-256 |
f9ca6f598bbee707a12f5badb2b77b6f757b7133874e2cc1185213856b42ecb7
|
File details
Details for the file H2oMojoPredict-0.1.3-py3-none-any.whl.
File metadata
- Download URL: H2oMojoPredict-0.1.3-py3-none-any.whl
- Upload date:
- Size: 2.4 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.7.16
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3c9f899231e023ccc9946151c93b2a4120575e2aecbbe1763081b1fd8945cc3f
|
|
| MD5 |
f94fa77513d9fd8c73e52ca22d33eabc
|
|
| BLAKE2b-256 |
66e91c08af60ea39e23189a5d439881004262f19e65ac0c046aad951493db8c2
|