pub struct RegressionLayer {Show 15 fields
pub method: String,
pub beta_t: Option<Vec<f64>>,
pub fitted_values: Vec<f64>,
pub residuals: Vec<f64>,
pub observed_y: Vec<f64>,
pub r_squared: f64,
pub adj_r_squared: Option<f64>,
pub intercept: f64,
pub ncomp: usize,
pub argvals: Option<Vec<f64>>,
pub beta_se: Option<Vec<f64>>,
pub model_name: Option<String>,
pub n_obs: Option<usize>,
pub fpca: Option<Box<FpcaLayer>>,
pub selection_extra: Option<HashMap<String, Vec<f64>>>,
}Expand description
Scalar-on-function regression fit.
Fields§
§method: StringMethod name (e.g., “fregre_lm”, “fregre_pls”, “fregre_np”, “elastic”).
beta_t: Option<Vec<f64>>Functional coefficient β(t) (length m). None for nonparametric.
fitted_values: Vec<f64>Fitted values (length n).
residuals: Vec<f64>Residuals (length n).
observed_y: Vec<f64>Observed response (length n).
r_squared: f64R².
adj_r_squared: Option<f64>Adjusted R².
intercept: f64Intercept.
ncomp: usizeNumber of components used (0 for nonparametric).
argvals: Option<Vec<f64>>Evaluation grid for β(t).
beta_se: Option<Vec<f64>>Pointwise standard errors of β(t).
model_name: Option<String>Optional: human-readable model name.
n_obs: Option<usize>Optional: number of training observations.
fpca: Option<Box<FpcaLayer>>Optional: FPCA decomposition used by the model (needed for explain functions).
selection_extra: Option<HashMap<String, Vec<f64>>>Optional: model selection details.
Trait Implementations§
Source§impl Clone for RegressionLayer
impl Clone for RegressionLayer
Source§fn clone(&self) -> RegressionLayer
fn clone(&self) -> RegressionLayer
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 moreSource§impl Debug for RegressionLayer
impl Debug for RegressionLayer
Source§impl From<&FregreLmResult> for RegressionLayer
impl From<&FregreLmResult> for RegressionLayer
Source§fn from(fit: &FregreLmResult) -> Self
fn from(fit: &FregreLmResult) -> Self
Converts to this type from the input type.
Source§impl From<&PlsRegressionResult> for RegressionLayer
impl From<&PlsRegressionResult> for RegressionLayer
Source§fn from(fit: &PlsRegressionResult) -> Self
fn from(fit: &PlsRegressionResult) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for RegressionLayer
impl RefUnwindSafe for RegressionLayer
impl Send for RegressionLayer
impl Sync for RegressionLayer
impl Unpin for RegressionLayer
impl UnsafeUnpin for RegressionLayer
impl UnwindSafe for RegressionLayer
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 moreSource§impl<T> Pointable for T
impl<T> Pointable 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>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
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
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.