Skip to main content

No project description provided

Project description

Nubison

This project is a SDK for integrate ML model to Nubison.

Usage

Register a model (default)

Logs the experiment and creates a Model Registry entry in one call.

from nubison_model import register, NubisonModel, ModelContext


class MyModel(NubisonModel):
    def load_model(self, context: ModelContext):
        ...

    def infer(self, input):
        ...


model_uri = register(
    MyModel(),
    model_name="MyModel",
    artifact_dirs="src,weights",
    params={"lr": 0.01, "epochs": 100},
    metrics={"accuracy": 0.95},
)
# model_uri == "models:/MyModel/<version>"

Log experiment only (skip Model Registry)

Pass skip_model_registration=True to log the experiment and package the model as a run artifact, without creating a Model Registry entry. The returned URI has a runs:/ prefix and can later be registered via mlflow.register_model().

run_uri = register(
    MyModel(),
    model_name="MyModel",
    artifact_dirs="src,weights",
    params={"lr": 0.01},
    metrics={"accuracy": 0.95},
    skip_model_registration=True,
)
# run_uri == "runs:/<run_id>/model"

# Later, review results and register when ready:
import mlflow

mlflow.register_model(run_uri, "MyModel")

The default is skip_model_registration=False, which preserves the original behavior.

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

nubison_model-0.0.9.tar.gz (13.6 kB view details)

Uploaded Source

Built Distribution

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

nubison_model-0.0.9-py3-none-any.whl (15.6 kB view details)

Uploaded Python 3

File details

Details for the file nubison_model-0.0.9.tar.gz.

File metadata

  • Download URL: nubison_model-0.0.9.tar.gz
  • Upload date:
  • Size: 13.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for nubison_model-0.0.9.tar.gz
Algorithm Hash digest
SHA256 ae44ad08a0a35093f26357e816fe1c5ddd6584d53b0eb053051c8ad78bad8c7b
MD5 f7b358acf22f8d7a4fd50c89b4678588
BLAKE2b-256 b353a92570486d6421844346f42073be51d0774e1a79b7c9ffccf2e8deefe2c0

See more details on using hashes here.

Provenance

The following attestation bundles were made for nubison_model-0.0.9.tar.gz:

Publisher: publish.yml on nubison/nubison-model

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file nubison_model-0.0.9-py3-none-any.whl.

File metadata

  • Download URL: nubison_model-0.0.9-py3-none-any.whl
  • Upload date:
  • Size: 15.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for nubison_model-0.0.9-py3-none-any.whl
Algorithm Hash digest
SHA256 9ab3c2faa5bd61a042190112605c95c8776d27b32a2d444e22c19c12d7e252df
MD5 462f8a284c56efce6e2ad1a0fc3a8120
BLAKE2b-256 8bc3132e05a58c35e3d48492a3ab1eabe327d983e2b4985c6c2dfbaae54c46ec

See more details on using hashes here.

Provenance

The following attestation bundles were made for nubison_model-0.0.9-py3-none-any.whl:

Publisher: publish.yml on nubison/nubison-model

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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