Skip to main content

HSML: An environment independent client to interact with the Hopsworks Experiments, Model Registry and Serving service

Project description

Hopsworks Model Registry

Hopsworks Community Hopsworks Model Registry Documentation PyPiStatus Scala/Java Artifacts Downloads CodeStyle License

HSML is the library to interact with the Hopsworks Model Registry. The library makes it easy to export and manage models.

The library automatically configures itself based on the environment it is run. However, to connect from an external Python environment additional connection information, such as host and port, is required. For more information about the setup from external environments, see the setup section.

Getting Started On Hopsworks

Instantiate a connection and get the project model registry handle

import hsml

# Create a connection
connection = hsml.connection()

# Get the model registry handle for the project's model registry
mr = connection.get_model_registry()

Create a new model

mnist_model_meta = mr.tensorflow.create_model(name="mnist",
                                              version=1,
                                              metrics={"accuracy": 0.94},
                                              description="mnist model description")
mnist_model_meta.save("/tmp/model_directory")

Download a model

mnist_model_meta = mr.get_model("name", version=1)

model_path = mnist_model_meta.download()

Delete a model

mnist_model_meta.delete()

Get best performing model

mnist_model_meta = mr.get_best_model('mnist', 'accuracy', 'max')

You can find more examples on how to use the library in examples.hopsworks.ai.

Documentation

Documentation is available at Hopsworks Model Registry Documentation.

Issues

For general questions about the usage of Hopsworks Machine Learning please open a topic on Hopsworks Community.

Please report any issue using Github issue tracking.

Contributing

If you would like to contribute to this library, please see the Contribution Guidelines.

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

hsml-0.0.1.dev0.tar.gz (29.2 kB view details)

Uploaded Source

File details

Details for the file hsml-0.0.1.dev0.tar.gz.

File metadata

  • Download URL: hsml-0.0.1.dev0.tar.gz
  • Upload date:
  • Size: 29.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.10

File hashes

Hashes for hsml-0.0.1.dev0.tar.gz
Algorithm Hash digest
SHA256 d4a9c815c46a55d0e0cd3a2052739f2cc61dc54794d48cf33a085e830227a3ac
MD5 c7e85bc68827f4ce5acca159e149de65
BLAKE2b-256 c822a4addb1b1680d54aacd9c538aeaf6895215579dc94c1026d2abcd251fa28

See more details on using hashes here.

Supported by

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