Skip to main content

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


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.2.tar.gz (2.4 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

H2oMojoPredict-0.1.2-py3-none-any.whl (2.4 MB view details)

Uploaded Python 3

File details

Details for the file H2oMojoPredict-0.1.2.tar.gz.

File metadata

  • Download URL: H2oMojoPredict-0.1.2.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

Hashes for H2oMojoPredict-0.1.2.tar.gz
Algorithm Hash digest
SHA256 273b16a1f6ea230bcb91343e6b6502ed9b69daa2a51116cead2340b756cfa25c
MD5 1f27c28add1bdf407456c638fd9bcd24
BLAKE2b-256 48f11cc94a866547e57f68820c806122c5f706df67cc8c3b2d06e99718e6580f

See more details on using hashes here.

File details

Details for the file H2oMojoPredict-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: H2oMojoPredict-0.1.2-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

Hashes for H2oMojoPredict-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 62fad90feff8904c2a2571cf57a4adc0ed90ef405ccc2f7e7ccd74b3ff07b9dc
MD5 b99613c30a632da38e806928acaf8545
BLAKE2b-256 a232625a3fd751d3ed2da4a378a31cd28e5d7a1a5fc258fe5f98026a78b346a3

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page