pub struct TreeDiagnostics {
pub n_nodes: usize,
pub n_leaves: usize,
pub max_depth: usize,
pub n_samples: u64,
pub n_replacements: u64,
pub contribution: f64,
}Available on crate feature
alloc only.Expand description
Diagnostics for a single tree in the ensemble.
Fields§
§n_nodes: usizeTotal nodes (internal + leaf).
n_leaves: usizeNumber of leaf nodes.
max_depth: usizeMaximum depth of the tree.
n_samples: u64Samples this tree has been trained on.
n_replacements: u64Number of times this tree slot has been replaced.
contribution: f64This tree’s contribution to the current prediction (lr * tree.predict(x)).
Trait Implementations§
Source§impl Clone for TreeDiagnostics
impl Clone for TreeDiagnostics
Source§fn clone(&self) -> TreeDiagnostics
fn clone(&self) -> TreeDiagnostics
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 moreSource§impl Debug for TreeDiagnostics
impl Debug for TreeDiagnostics
Auto Trait Implementations§
impl Freeze for TreeDiagnostics
impl RefUnwindSafe for TreeDiagnostics
impl Send for TreeDiagnostics
impl Sync for TreeDiagnostics
impl Unpin for TreeDiagnostics
impl UnsafeUnpin for TreeDiagnostics
impl UnwindSafe for TreeDiagnostics
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> 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