pub struct ModelDiagnostics {
pub trees: Vec<DistributionalTreeDiagnostic>,
pub location_trees: Vec<DistributionalTreeDiagnostic>,
pub scale_trees: Vec<DistributionalTreeDiagnostic>,
pub feature_split_counts: Vec<usize>,
pub location_base: f64,
pub scale_base: f64,
pub empirical_sigma: f64,
pub scale_mode: ScaleMode,
pub scale_trees_active: usize,
pub auto_bandwidths: Vec<f64>,
pub ensemble_grad_mean: f64,
pub ensemble_grad_std: f64,
}alloc only.Expand description
Full model diagnostics for DistributionalSGBT.
Contains per-tree summaries, feature usage, base predictions, and empirical σ state.
Fields§
§trees: Vec<DistributionalTreeDiagnostic>Per-tree diagnostic summaries (location trees first, then scale trees).
location_trees: Vec<DistributionalTreeDiagnostic>Location trees only (view into trees).
scale_trees: Vec<DistributionalTreeDiagnostic>Scale trees only (view into trees).
feature_split_counts: Vec<usize>How many trees each feature is used in (split count per feature).
location_base: f64Base prediction for location (mean).
scale_base: f64Base prediction for scale (log-sigma).
empirical_sigma: f64Current empirical σ (sqrt(ewma_sq_err)), always available.
scale_mode: ScaleModeScale mode in use.
scale_trees_active: usizeNumber of scale trees that actually split (>1 leaf). 0 = frozen chain.
auto_bandwidths: Vec<f64>Per-feature auto-calibrated bandwidths for smooth prediction.
f64::INFINITY means that feature uses hard routing.
ensemble_grad_mean: f64Ensemble-level gradient running mean.
ensemble_grad_std: f64Ensemble-level gradient standard deviation.
Trait Implementations§
Source§impl Clone for ModelDiagnostics
impl Clone for ModelDiagnostics
Source§fn clone(&self) -> ModelDiagnostics
fn clone(&self) -> ModelDiagnostics
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more