Skip to main content

rill_ml/diagnostics/
mod.rs

1//! Diagnostics for online models.
2//!
3//! This module provides bounded-memory diagnostic primitives that help
4//! upper-layer applications answer:
5//!
6//! - How many samples has the model seen?
7//! - What is the recent error?
8//! - Is the model still warming up?
9//! - Is the model beating its baseline?
10//! - Are the model parameters healthy (no NaN / Infinity)?
11//! - What is a reasonable prediction interval?
12//!
13//! Diagnostics are intentionally decoupled from the core model traits.
14//! A model implementation remains free to return a plain prediction; the
15//! diagnostic wrappers here layer on top without polluting the base API.
16
17pub mod baseline_comparator;
18pub mod model_health;
19pub mod model_selector;
20pub mod prediction_interval;
21pub mod prediction_report;
22pub mod training_summary;
23pub mod warmup;
24
25pub use baseline_comparator::{BaselineComparator, ComparatorEntry, SwitchReason};
26pub use model_health::ModelHealthReport;
27pub use model_selector::{OnlineModelSelector, SelectorConfig};
28pub use prediction_interval::{PredictionInterval, ResidualInterval};
29pub use prediction_report::{Confidence, PredictionReport, PredictionReporter};
30pub use training_summary::{TrainingSummary, TrainingSummaryConfig};
31pub use warmup::{WarmupConfig, WarmupState, WarmupTracker};