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§
Empirical
EWMA of squared prediction errors — always calibrated, O(1).
TreeChain
Full Hoeffding-tree ensemble for feature-conditional log(σ) prediction.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for ScaleMode
impl<'de> Deserialize<'de> for ScaleMode
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
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