pub struct EnsembleDiagnostics {
pub trees: Vec<TreeDiagnostics>,
pub feature_importance: Vec<f64>,
pub total_replacements: u64,
pub n_trees: usize,
pub base_prediction: f64,
pub learning_rate: f64,
pub n_samples: u64,
}Expand description
Diagnostics for an SGBT ensemble.
Fields§
§trees: Vec<TreeDiagnostics>Per-tree diagnostics.
feature_importance: Vec<f64>Feature importance: fraction of splits per feature across all trees. Sums to 1.0. Indexed by feature index.
total_replacements: u64Total number of tree replacements across all slots.
n_trees: usizeNumber of active trees (n_steps).
base_prediction: f64Base prediction (intercept).
learning_rate: f64Learning rate.
n_samples: u64Total samples the ensemble has seen.
Trait Implementations§
Source§impl Clone for EnsembleDiagnostics
impl Clone for EnsembleDiagnostics
Source§fn clone(&self) -> EnsembleDiagnostics
fn clone(&self) -> EnsembleDiagnostics
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 EnsembleDiagnostics
impl Debug for EnsembleDiagnostics
Auto Trait Implementations§
impl Freeze for EnsembleDiagnostics
impl RefUnwindSafe for EnsembleDiagnostics
impl Send for EnsembleDiagnostics
impl Sync for EnsembleDiagnostics
impl Unpin for EnsembleDiagnostics
impl UnsafeUnpin for EnsembleDiagnostics
impl UnwindSafe for EnsembleDiagnostics
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