Skip to main content

Module diagnostics

Module diagnostics 

Source
Expand description

Diagnostics for online models.

This module provides bounded-memory diagnostic primitives that help upper-layer applications answer:

  • How many samples has the model seen?
  • What is the recent error?
  • Is the model still warming up?
  • Is the model beating its baseline?
  • Are the model parameters healthy (no NaN / Infinity)?
  • What is a reasonable prediction interval?

Diagnostics are intentionally decoupled from the core model traits. A model implementation remains free to return a plain prediction; the diagnostic wrappers here layer on top without polluting the base API.

Structs§

BaselineComparator
Compares multiple models by their rolling error and tracks the current best.
ComparatorEntry
A single tracked model entry inside a BaselineComparator.
ModelHealthReport
Snapshot of model parameter health.
OnlineModelSelector
Online model selector with cooling period and minimum sample requirements.
PredictionInterval
An immutable prediction interval [lower, upper].
PredictionReport
An immutable snapshot of diagnostics for a single prediction.
PredictionReporter
Diagnostic wrapper that integrates interval estimation, warmup tracking, and training summary statistics.
ResidualInterval
Residual-based prediction interval estimator.
ResidualIntervalConfig
Configuration for ResidualInterval.
SelectorConfig
Configuration for OnlineModelSelector.
TrainingSummary
Bounded-memory summary of a training process.
TrainingSummaryConfig
Configuration for TrainingSummary.
WarmupConfig
Configuration for WarmupTracker.
WarmupTracker
Bounded-memory warmup state tracker.

Enums§

Confidence
Coarse confidence level derived from the warmup state and baseline comparison.
SwitchReason
Why the active best entry changed (or could not be determined).
WarmupState
Lifecycle state of a model during warmup.