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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ae44ad08a0a35093f26357e816fe1c5ddd6584d53b0eb053051c8ad78bad8c7b
|
|
| MD5 |
f7b358acf22f8d7a4fd50c89b4678588
|
|
| BLAKE2b-256 |
b353a92570486d6421844346f42073be51d0774e1a79b7c9ffccf2e8deefe2c0
|
Provenance
The following attestation bundles were made for nubison_model-0.0.9.tar.gz:
Publisher:
publish.yml on nubison/nubison-model
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
nubison_model-0.0.9.tar.gz -
Subject digest:
ae44ad08a0a35093f26357e816fe1c5ddd6584d53b0eb053051c8ad78bad8c7b - Sigstore transparency entry: 1518390650
- Sigstore integration time:
-
Permalink:
nubison/nubison-model@ecc56880e1fadb200e8080941131b1e9fabd422f -
Branch / Tag:
refs/tags/v0.0.9 - Owner: https://github.com/nubison
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@ecc56880e1fadb200e8080941131b1e9fabd422f -
Trigger Event:
release
-
Statement type:
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9ab3c2faa5bd61a042190112605c95c8776d27b32a2d444e22c19c12d7e252df
|
|
| MD5 |
462f8a284c56efce6e2ad1a0fc3a8120
|
|
| BLAKE2b-256 |
8bc3132e05a58c35e3d48492a3ab1eabe327d983e2b4985c6c2dfbaae54c46ec
|
Provenance
The following attestation bundles were made for nubison_model-0.0.9-py3-none-any.whl:
Publisher:
publish.yml on nubison/nubison-model
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
nubison_model-0.0.9-py3-none-any.whl -
Subject digest:
9ab3c2faa5bd61a042190112605c95c8776d27b32a2d444e22c19c12d7e252df - Sigstore transparency entry: 1518390727
- Sigstore integration time:
-
Permalink:
nubison/nubison-model@ecc56880e1fadb200e8080941131b1e9fabd422f -
Branch / Tag:
refs/tags/v0.0.9 - Owner: https://github.com/nubison
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@ecc56880e1fadb200e8080941131b1e9fabd422f -
Trigger Event:
release
-
Statement type: