pub struct ModelDiagnostics {
pub trees: Vec<TreeDiagnostic>,
pub location_trees: Vec<TreeDiagnostic>,
pub scale_trees: Vec<TreeDiagnostic>,
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,
}Expand description
Full model diagnostics for DistributionalSGBT.
Contains per-tree summaries, feature usage, base predictions, and empirical σ state.
Fields§
§trees: Vec<TreeDiagnostic>Per-tree diagnostic summaries (location trees first, then scale trees).
location_trees: Vec<TreeDiagnostic>Location trees only (view into trees).
scale_trees: Vec<TreeDiagnostic>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.
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 · 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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>
Converts
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>
Converts
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