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-1.0.0.tar.gz (29.9 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-1.0.0-py3-none-any.whl (35.2 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for momo_ml-1.0.0.tar.gz
Algorithm Hash digest
SHA256 14339c7c16e418428c0ce6a39f2c51451c3619272fd77f1a79d3e7d576ce4ec1
MD5 d5037ae20d4b5c043ec476618fc26c8f
BLAKE2b-256 6b4dbec5d31fb389599f027b175ec42ce85a12e6e5d9dfd4816a76ef7b63759b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: momo_ml-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 35.2 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-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 5b30b82d363a309e6ffb8f358bd84b96eebf106ce04ca8a6a7cdb316591b1a16
MD5 8a8e3a7a83a096aed48da8cc6a6cdcd0
BLAKE2b-256 335eeb012b5bec3b0b4857df45e63c3843793d8059d09e03d9dc1d11d8a8c2c6

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