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]
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)