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.1.tar.gz (2.3 kB 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.1-py3-none-any.whl (2.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: H2oMojoPredict-0.1.1.tar.gz
  • Upload date:
  • Size: 2.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.7.16

File hashes

Hashes for H2oMojoPredict-0.1.1.tar.gz
Algorithm Hash digest
SHA256 c3c4fd7de7c85e3977ef610fc71b9152054f0ebfe64ac749202fe995aaca820d
MD5 f801ec9d209d113746af05ed45d17a9b
BLAKE2b-256 9da693e27b68d63a27296ff95fadd5da20eaff1213ff0fa420891c7a67974a4f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: H2oMojoPredict-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 2.8 kB
  • 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 e148b6d82fb0f768d5ab54f0a63a1aa18761c7d140021823e5659378d5b3e7ee
MD5 bea0c38f5d5a1a6c4f77edc199251306
BLAKE2b-256 bb3ddaff59b028c548b5b07ffded682516509285aeac3350b2d8d488bf1ba85b

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