Model operations#

MLOps tools: configuration, pipelines, persistence and registry, experiment tracking, data contracts, drift monitoring and model cards.

Configurations, pipelines, model files and registry, experiment tracking, data contracts, drift monitoring, model cards.

Classes#

AnalysisPipeline([segmenter, n_regimes, ...])

Preprocess -> segment -> learn regimes -> label new data.

ModelRegistry([root])

File-based model registry.

ExperimentTracker([root, experiment, use_mlflow])

Experiment tracking with a local backend and optional MLflow mirroring.

DataContract([n_variables, names, ...])

Expected properties of input data.

DriftMonitor([n_components, alpha, ...])

Batch-wise drift monitoring against reference data.

Functions#

to_config(obj)

Dictionary {"class": "module.Class", "params": {...}} of an estimator.

from_config(cfg)

Rebuild an estimator from to_config() output.

save_config(obj_or_cfg, path)

Write a configuration (or the configuration of an object) to JSON or YAML.

load_config(path)

Read a JSON or YAML configuration file.

save_model(model, path[, data, metrics, ...])

Save a model directory (model.joblib, config.json, metadata.json).

load_model(path[, verify])

Load a model saved by save_model(); with verify the file hash is checked and a warning is raised if the package version differs.

data_fingerprint(data)

SHA-256 fingerprint of an array or collection (shape and values).

population_stability_index(reference, current)

Population stability index of a univariate feature (bins: reference quantiles).

model_card(model[, name, purpose, ...])

Markdown model card of an mvtsa model (written to path if given).