
Product
Introducing Custom Pull Request Alert Comment Headers
Socket now lets you customize pull request alert headers, helping security teams share clear guidance right in PRs to speed reviews and reduce back-and-forth.
h2o-mlops-scoring-client
Advanced tools
A Python client library to simplify robust mini-batch scoring against an H2O MLOps scoring endpoint.
A Python client library to simplify robust mini-batch scoring against an H2O MLOps scoring endpoint. It can run on your local PC, a stand alone server, Databricks, or a Spark 3 cluster.
Scoring Pandas data frames is as easy as:
pip install h2o-mlops-scoring-client
import h2o_mlops_scoring_client
scores_df = h2o_mlops_scoring_client.score_data_frame(
mlops_endpoint_url="https://.../model/score",
id_column="ID",
data_frame=df,
)
Scoring from a source to a sink is also possible through pyspark
:
pip install h2o-mlops-scoring-client[PYSPARK]
import h2o_mlops_scoring_client
h2o_mlops_scoring_client.score_source_sink(
mlops_endpoint_url="https://.../model/score",
id_column="ID",
source_data="s3a://...",
source_format=h2o_mlops_scoring_client.Format.CSV,
sink_location="s3a://...",
sink_format=h2o_mlops_scoring_client.Format.PARQUET,
sink_write_mode=h2o_mlops_scoring_client.WriteMode.OVERWRITE
)
pyspark
installs)pip install h2o-mlops-scoring-client
pyspark
is no longer included in a default install. To include pyspark
:
pip install h2o-mlops-scoring-client[PYSPARK]
Use when batch scoring processing (authenticating and connecting to source or sink, file/data processing or conversions, etc.) can happen external to H2O AI Cloud but you want to stay within the H2O MLOps workflow (projects, scoring, registry, monitoring, etc.).
As the batch scoring processing occurs, the data is sent to an H2O MLOps deployment for scoring. The scores are then returned for the batch scoring processing to complete.
The MLOps scoring client can support many source/sinks, including:
The MLOps scoring client can read and write:
If there's a file type you would like to see supported, please let us know.
Yes. The MLOps Scoring Client uses MLOps scoring endpoints which are automatically monitored.
No. If you're scoring Pandas data frames, then no extra Spark install or configuration is needed. If you want to connect to an external source or sink, you'll need to install pyspark
and do a small amount of configuration.
FAQs
A Python client library to simplify robust mini-batch scoring against an H2O MLOps scoring endpoint.
We found that h2o-mlops-scoring-client demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Socket now lets you customize pull request alert headers, helping security teams share clear guidance right in PRs to speed reviews and reduce back-and-forth.
Product
Socket's Rust support is moving to Beta: all users can scan Cargo projects and generate SBOMs, including Cargo.toml-only crates, with Rust-aware supply chain checks.
Product
Socket Fix 2.0 brings targeted CVE remediation, smarter upgrade planning, and broader ecosystem support to help developers get to zero alerts.