# Show HN: A lightweight model monitor for scikit-learn and Keras

> Source: <https://aitor1717.github.io/canary-ml/>
> Published: 2026-07-14 15:39:43+00:00

Drift and anomaly detection for production ML models. Cutting-edge performance in a wrapper, for free.

pip install canary-ml

Keras/TensorFlow: pip install canary-ml[keras]

pip install canary-ml[keras]

``` python
from canary_ml import ModelMonitor

monitor = ModelMonitor(
    model=your_model,
    reference_data=X_train,
    alert_threshold=0.2,
    log_path="./canary_logs"
)

# drop-in replacement — monitoring is a side effect
predictions = monitor.predict(X_new)

report = monitor.get_report()
print(report.psi_score, report.drift_detected, report.anomaly_rate)
# 0.41  True  0.032

monitor.serve_dashboard(port=8501)
```


