Skip to main content

A comprehensive library for automated model monitoring and drift detection

Project description

Model Monitor

PyPI Python License Build Status

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

License

This project is licensed under the MIT License - see the LICENSE file for details.

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

model_monitor-0.1.1.tar.gz (40.3 kB view details)

Uploaded Source

Built Distribution

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

model_monitor-0.1.1-py3-none-any.whl (46.4 kB view details)

Uploaded Python 3

File details

Details for the file model_monitor-0.1.1.tar.gz.

File metadata

  • Download URL: model_monitor-0.1.1.tar.gz
  • Upload date:
  • Size: 40.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.1

File hashes

Hashes for model_monitor-0.1.1.tar.gz
Algorithm Hash digest
SHA256 c6635f770c489db635a9cd45666cd161c5a2e87f0fda988929c12b13994cd387
MD5 ffcf2515955d3a1ad0a4a4a9f6706b7b
BLAKE2b-256 5579ab03433790b5c3e4fcedfa32cc52aff60e746284d52f1afe742aebde03a3

See more details on using hashes here.

File details

Details for the file model_monitor-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: model_monitor-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 46.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.1

File hashes

Hashes for model_monitor-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 12fdcab6a8a0cf24cf9048e469085d93189943a9d2f2c776cdf65ffec6ec8823
MD5 03be0632a079fb94db2126c3b0253b8b
BLAKE2b-256 bedf76b27339a274e80a9348a528a2d4cdf3064b5bc068f08de38d6ccfa75aad

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