pub struct DecomposedPrediction {
pub location_base: f64,
pub scale_base: f64,
pub location_contributions: Vec<f64>,
pub scale_contributions: Vec<f64>,
}Available on crate feature
alloc only.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