Skip to main content

A production-oriented model monitoring library for detecting performance drift, data drift, and prediction drift, with automated reporting for ML systems.

Project description

PyPI version Python Versions License

momo-ml

momo-ml (MOdel MOnitoring for ML) is a production‑oriented library for systematically, scalably, and automatically monitoring model quality.
It covers key monitoring dimensions such as model performance drift, data drift, and prediction drift, and also supports automatic generation of visual reports.

This project is suitable for data science, ML engineering, MLOps, and other scenarios – it can be integrated into various monitoring and governance workflows after model deployment.


📌 Features

1. Performance Drift

Evaluate how model performance changes over time by comparing a reference dataset with a current dataset.
Supports both classification and regression tasks with a full suite of metrics, enabling detailed drift detection across time windows.

Key capabilities include:

  • Classification metrics such as AUC, Accuracy, Precision, Recall, F1, and KS (supports binary & multiclass).
  • Regression metrics including RMSE, MAE, R², SMAPE, P90/P95 Error, and Huber Loss.
  • Automatic task‑type detection (classification vs. regression) based on label/prediction structure.
  • Flexible configuration for label and prediction columns.

Use this to monitor whether a model’s predictive quality remains stable in production.


2. Data Drift

Detect how input feature distributions shift between a reference and a current dataset.
Works for both numeric and categorical features, with multiple statistical measures to quantify distributional changes.

Key capabilities include:

  • For numeric features: PSI, KL divergence, JS divergence, KS statistic, and Wasserstein distance.
  • For categorical features: PSI, KL divergence, JS divergence, and Wasserstein distance.
  • Automatic separation of numeric/categorical fields.
  • Safe handling of incompatible feature types with clear warnings.

This module helps identify upstream data issues such as schema drift, feature instability, or gradual population changes.


3. Prediction Drift

Monitor changes in the distribution of model predictions, independent of labels.
Useful for real‑time systems, unlabeled production environments, and early anomaly detection.

Key capabilities include:

  • Summary statistics for numeric predictions (mean, std, quantiles) and categorical predictions (proportion changes).
  • Drift metrics including PSI, KL, JS (all prediction types) and KS for continuous predictions.
  • Histogram‑based L1/L2 distance and quantile/decile shift for continuous outputs.
  • Automatic distinction between numeric and categorical prediction behavior using a configurable threshold.

Ideal for detecting unexpected output shifts before they escalate into performance degradation.

4. Automated Reporting

Unified report generation capabilities:

  • Automatically generate drift charts (matplotlib / plotly)
  • One‑click HTML or PDF report generation
  • Extensible storage or push to custom dashboards

🔧 Installation

pip install momo-ml

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

momo_ml-0.1.5.tar.gz (28.2 kB view details)

Uploaded Source

Built Distribution

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

momo_ml-0.1.5-py3-none-any.whl (33.4 kB view details)

Uploaded Python 3

File details

Details for the file momo_ml-0.1.5.tar.gz.

File metadata

  • Download URL: momo_ml-0.1.5.tar.gz
  • Upload date:
  • Size: 28.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.9

File hashes

Hashes for momo_ml-0.1.5.tar.gz
Algorithm Hash digest
SHA256 0f8b689100ae457bf0ed51d37093fb1cbdc384b0e514bdfccc2b1d467376a3c9
MD5 f89f6766121fdd314f2e9e657feb3a59
BLAKE2b-256 e82b678c6d96e2b45b47679a2aaa7038f5d16ab0a4923c7452fe32e3f089a0df

See more details on using hashes here.

File details

Details for the file momo_ml-0.1.5-py3-none-any.whl.

File metadata

  • Download URL: momo_ml-0.1.5-py3-none-any.whl
  • Upload date:
  • Size: 33.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.9

File hashes

Hashes for momo_ml-0.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 7d7cddcc51ec838da50270d10109954240353259b8131cb0f84950a927cf18ad
MD5 8b252efc38fa65a8595d190e77b7b8c8
BLAKE2b-256 a8ddf6ab399bd18445c8a13b7515c045dc60712cdefc751a1191806789f3c26a

See more details on using hashes here.

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