#[non_exhaustive]pub struct BoostFosrResult {
pub intercept: Vec<f64>,
pub beta: FdMatrix,
pub fitted: FdMatrix,
pub residuals: FdMatrix,
pub r_squared_t: Vec<f64>,
pub r_squared: f64,
pub mstop: usize,
pub nu: f64,
pub selected_learners: Vec<usize>,
pub gcv_path: Vec<f64>,
}Expand description
Result of component-wise boosted function-on-scalar regression (REG-06-01).
Follows the FosrResult field convention; adds the boosting path diagnostics
(selected_learners, gcv_path, mstop, nu).
Divergence from FDboost: fixed mstop / fixed nu; no CV-based early stopping.
GCV path is tracked for post-hoc diagnostics only (see gcv_path).
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.intercept: Vec<f64>Intercept function F₀(t) = Ȳ(t) (pointwise mean of Y, length m_t).
beta: FdMatrixAccumulated coefficient functions β_j(t) per predictor (p × m_t).
Row j holds the total contribution of base-learner j across all iterations where it was selected, scaled by ν.
fitted: FdMatrixFitted functional values F̂(xᵢ, t) = Σ contributions (n × m_t).
residuals: FdMatrixResidual curves Y − F̂ (n × m_t).
r_squared_t: Vec<f64>Pointwise R²(t) at each response grid point (length m_t).
r_squared: f64Integrated R² (scalar summary).
mstop: usizeNumber of boosting iterations used.
nu: f64Learning rate ν used.
selected_learners: Vec<usize>Index j* of the base-learner selected at each boosting iteration (length mstop).
gcv_path: Vec<f64>‖residual‖_F² recorded after each iteration (length mstop).
Should be non-increasing for L2 loss (use for path diagnostics / GCV).
Trait Implementations§
Source§impl Clone for BoostFosrResult
impl Clone for BoostFosrResult
Source§fn clone(&self) -> BoostFosrResult
fn clone(&self) -> BoostFosrResult
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 BoostFosrResult
impl Debug for BoostFosrResult
Source§impl PartialEq for BoostFosrResult
impl PartialEq for BoostFosrResult
impl StructuralPartialEq for BoostFosrResult
Auto Trait Implementations§
impl Freeze for BoostFosrResult
impl RefUnwindSafe for BoostFosrResult
impl Send for BoostFosrResult
impl Sync for BoostFosrResult
impl Unpin for BoostFosrResult
impl UnsafeUnpin for BoostFosrResult
impl UnwindSafe for BoostFosrResult
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.