pub struct TreeDiagnostic {
pub n_leaves: usize,
pub max_depth_reached: usize,
pub samples_seen: u64,
pub leaf_weight_stats: (f64, f64, f64, f64),
pub split_features: Vec<usize>,
pub leaf_sample_counts: Vec<u64>,
pub prediction_mean: f64,
pub prediction_std: f64,
}Available on crate feature
alloc only.Expand description
Per-tree diagnostic summary.
Fields§
§n_leaves: usizeNumber of leaf nodes in this tree.
max_depth_reached: usizeMaximum depth reached by any leaf.
samples_seen: u64Total samples this tree has seen.
leaf_weight_stats: (f64, f64, f64, f64)Leaf weight statistics: (min, max, mean, std).
split_features: Vec<usize>Feature indices this tree has split on (non-zero gain).
leaf_sample_counts: Vec<u64>Per-leaf sample counts showing data distribution across leaves.
prediction_mean: f64Running mean of predictions from this tree (Welford online).
prediction_std: f64Running standard deviation of predictions from this tree.
Trait Implementations§
Source§impl Clone for TreeDiagnostic
impl Clone for TreeDiagnostic
Source§fn clone(&self) -> TreeDiagnostic
fn clone(&self) -> TreeDiagnostic
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 TreeDiagnostic
impl RefUnwindSafe for TreeDiagnostic
impl Send for TreeDiagnostic
impl Sync for TreeDiagnostic
impl Unpin for TreeDiagnostic
impl UnsafeUnpin for TreeDiagnostic
impl UnwindSafe for TreeDiagnostic
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