pub struct ModelDiagnostics {
pub num_entries: usize,
pub optimal_k: Option<usize>,
pub metric_active: bool,
pub kernel_bandwidth: Option<f64>,
pub trained_at: usize,
pub entries_since_training: usize,
pub is_classification: bool,
pub feature_metrics: Option<Vec<FeatureDiagnostics>>,
pub output_stats: OutputStats,
}Expand description
Snapshot of the model’s current state for diagnostics/dashboards.
Fields§
§num_entries: usizeNumber of training points.
optimal_k: Option<usize>Current auto-selected K (None if not yet trained).
metric_active: boolWhether the learned metric is active (vs baseline Gower distance).
kernel_bandwidth: Option<f64>Gaussian kernel bandwidth (None = using hard-k + 1/d weighting).
trained_at: usizeNumber of entries when the model was last trained.
entries_since_training: usizeNumber of entries added since last training.
is_classification: boolWhether the model detected a classification task (vs regression).
feature_metrics: Option<Vec<FeatureDiagnostics>>Per-feature metric diagnostics (only available when metric is active).
output_stats: OutputStatsOutput value statistics.
Trait Implementations§
Source§impl Clone for ModelDiagnostics
impl Clone for ModelDiagnostics
Source§fn clone(&self) -> ModelDiagnostics
fn clone(&self) -> ModelDiagnostics
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ModelDiagnostics
impl RefUnwindSafe for ModelDiagnostics
impl Send for ModelDiagnostics
impl Sync for ModelDiagnostics
impl Unpin for ModelDiagnostics
impl UnsafeUnpin for ModelDiagnostics
impl UnwindSafe for ModelDiagnostics
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more