#[non_exhaustive]pub enum ScaleMode {
Empirical,
TreeChain,
}Available on crate feature
alloc only.Expand description
How DistributionalSGBT
estimates uncertainty (σ).
-
Empirical(default): tracks an EWMA of squared prediction errors.σ = sqrt(ewma_sq_err). Always calibrated, zero tuning, O(1) compute. Use this when σ drives learning-rate modulation (σ high → learn faster). -
TreeChain: trains a full second ensemble of Hoeffding trees to predict log(σ) from features (NGBoost-style dual chain). Gives feature-conditional uncertainty but requires strong signal in the scale gradients.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Empirical
Empirical sigma: EWMA of squared prediction errors (default).
TreeChain
Tree-chain: a second boosting chain learns log(sigma) from features.
Trait Implementations§
impl Copy for ScaleMode
impl Eq for ScaleMode
impl StructuralPartialEq for ScaleMode
Auto Trait Implementations§
impl Freeze for ScaleMode
impl RefUnwindSafe for ScaleMode
impl Send for ScaleMode
impl Sync for ScaleMode
impl Unpin for ScaleMode
impl UnsafeUnpin for ScaleMode
impl UnwindSafe for ScaleMode
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