Model Monitor
A comprehensive Python library for automated model monitoring and drift detection in machine learning systems.
Features
- Data Drift Detection: Identify shifts in feature distributions using statistical tests and distance metrics
- Model Performance Monitoring: Track key metrics over time and detect degradation
- Prediction Drift Analysis: Monitor changes in model output distributions
- Customizable Alerting: Set thresholds and receive notifications when drift is detected
- Visualization Tools: Generate comprehensive reports and visualizations of drift metrics
- Integration Flexibility: Works with various ML frameworks and data sources
- Scalable Architecture: Efficiently handle large datasets and high-throughput models
Installation
pip install model-monitor
Quick Start
from model_monitor import Monitor
import pandas as pd
# Initialize monitor with baseline data
baseline_data = pd.read_csv("baseline_data.csv")
production_data = pd.read_csv("production_data.csv")
monitor = Monitor()
monitor.set_baseline(baseline_data)
# Run drift detection
results = monitor.detect_drift(production_data)
# Generate report
monitor.generate_report("drift_report.html")
# Set up automated monitoring
monitor.schedule(
data_source="s3://bucket/path/to/data/",
frequency="daily",
alert_threshold=0.05,
notification_email="alerts@example.com"
)
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
Author
- Biswanath Roul - GitHub
License
This project is licensed under the MIT License - see the LICENSE file for details.
Metadata
Release files for model-monitor 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| model_monitor-0.1.1.tar.gz | 40.3 kB | Without provenance | Details for model_monitor-0.1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| model_monitor-0.1.1-py3-none-any.whl | Python 3 | none | any | Details for model_monitor-0.1.1-py3-none-any.whl |
Total release size: 86.7 kB
Release files / model_monitor-0.1.1.tar.gz
| Download URL | model_monitor-0.1.1.tar.gz |
|---|---|
| Size | 40.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c6635f770c489db635a9cd45666cd161c5a2e87f0fda988929c12b13994cd387
|
|
BLAKE2b-256 checksum How to use checksums |
5579ab03433790b5c3e4fcedfa32cc52aff60e746284d52f1afe742aebde03a3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.1
|
Release files / model_monitor-0.1.1-py3-none-any.whl
| Download URL | model_monitor-0.1.1-py3-none-any.whl |
|---|---|
| Size | 46.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
12fdcab6a8a0cf24cf9048e469085d93189943a9d2f2c776cdf65ffec6ec8823
|
|
BLAKE2b-256 checksum How to use checksums |
bedf76b27339a274e80a9348a528a2d4cdf3064b5bc068f08de38d6ccfa75aad
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.1
|
Security for model-monitor 0.1.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.