pub struct DecomposedPrediction {
pub location_base: f64,
pub scale_base: f64,
pub location_contributions: Vec<f64>,
pub scale_contributions: Vec<f64>,
}Expand description
Decomposed prediction showing each tree’s contribution.
Fields§
§location_base: f64Base location prediction (mean of initial targets).
scale_base: f64Base scale prediction (log-sigma of initial targets).
location_contributions: Vec<f64>Per-step location contributions: learning_rate * tree_prediction.
location_base + sum(location_contributions) = μ.
scale_contributions: Vec<f64>Per-step scale contributions: learning_rate * tree_prediction.
scale_base + sum(scale_contributions) = log(σ).
Implementations§
Trait Implementations§
Source§impl Clone for DecomposedPrediction
impl Clone for DecomposedPrediction
Source§fn clone(&self) -> DecomposedPrediction
fn clone(&self) -> DecomposedPrediction
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 DecomposedPrediction
impl RefUnwindSafe for DecomposedPrediction
impl Send for DecomposedPrediction
impl Sync for DecomposedPrediction
impl Unpin for DecomposedPrediction
impl UnsafeUnpin for DecomposedPrediction
impl UnwindSafe for DecomposedPrediction
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