pub struct BoostingConfig {
pub mstop: usize,
pub nu: f64,
pub nbasis: usize,
pub order: usize,
pub lfd_order: usize,
pub lambda: f64,
pub ncomp_x: usize,
pub seed: u64,
}Expand description
Configuration for component-wise gradient boosting (FOSR, FoFR, GAMLSS, stability).
All base-learners use the same nbasis, order, lfd_order, and lambda
to ensure equal effective degrees of freedom, preventing selection bias toward
more flexible learners (see Pitfall 4 in RESEARCH.md).
Divergence from FDboost: Fixed nu and mstop rather than CV-based early stopping;
the GCV path is tracked for diagnostic purposes but not used for stopping.
Fields§
§mstop: usizeNumber of boosting iterations (must be ≥ 1).
nu: f64Learning rate ν ∈ (0, 1] (FDboost default: 0.1).
nbasis: usizeNumber of B-spline basis functions per base-learner (must be ≥ 4).
The actual number of basis functions is nknots + order where
nknots = nbasis - order. With order = 4 (cubic), nbasis = 10
gives 6 interior knots.
order: usizeB-spline order (typically 4 for cubic splines).
lfd_order: usizePenalty derivative order (typically 2 for roughness).
lambda: f64Smoothing parameter λ > 0 for penalized base-learners.
ncomp_x: usizeNumber of predictor FPC components for FoFR base-learners (REG-06-02).
seed: u64RNG seed (used by stability selection and future extensions; unused in pure boosting).
Trait Implementations§
Source§impl Clone for BoostingConfig
impl Clone for BoostingConfig
Source§fn clone(&self) -> BoostingConfig
fn clone(&self) -> BoostingConfig
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for BoostingConfig
impl Debug for BoostingConfig
Source§impl PartialEq for BoostingConfig
impl PartialEq for BoostingConfig
impl StructuralPartialEq for BoostingConfig
Auto Trait Implementations§
impl Freeze for BoostingConfig
impl RefUnwindSafe for BoostingConfig
impl Send for BoostingConfig
impl Sync for BoostingConfig
impl Unpin for BoostingConfig
impl UnsafeUnpin for BoostingConfig
impl UnwindSafe for BoostingConfig
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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> ⓘ
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> ⓘ
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 moreSource§impl<T> Pointable for T
impl<T> Pointable for T
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
impl<T> Scalar for T
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
self to the equivalent element of its superset.