pub struct ParametricResidualizationChart {
pub owner_terms: Vec<usize>,
pub has_parametric_block: bool,
pub correction: Array2<f64>,
}Expand description
The predict-time replay record of a span-preserving parametric
orthogonalization (#2747): this term’s realized block is X·T − C·R.
T is not here — it is the ordinary coefficient transform, already absorbed
into the basis metadata, so a rebuilt design_local arrives with it applied.
What cannot be absorbed is R, because it multiplies the CONSTRAINT block
rather than the basis.
R is TRAINING-ROW data and is never re-derived, for the same reason
frozen_global_orthogonality is not (#978): the fit already decided this
term’s residualization, and rederiving it from prediction rows would
silently evaluate a different model. C itself IS rebuilt at the new rows —
that is what C is — from a recipe that is deterministic given the spec: the
intercept and owned linear axes come from
build_parametric_constraint_block_for_term, and the owner smooths are named
here rather than re-derived, because which owners bound is decided by a
cross-residual on the FIT rows.
Fields§
§owner_terms: Vec<usize>Indices into TermCollectionSpec::smooth_terms of the owner smooths
whose realized designs joined the constraint block, in the order
build_constraint_block stacked them.
has_parametric_block: boolWhether the parametric block (intercept + owned linear axes) led the
constraint block. Recorded rather than recomputed so a spec that changes
shape cannot silently re-order the columns correction’s rows index.
correction: Array2<f64>R, q × k, stated against the RAW constraint columns.
Trait Implementations§
Source§impl Clone for ParametricResidualizationChart
impl Clone for ParametricResidualizationChart
Source§fn clone(&self) -> ParametricResidualizationChart
fn clone(&self) -> ParametricResidualizationChart
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl<'de> Deserialize<'de> for ParametricResidualizationChart
impl<'de> Deserialize<'de> for ParametricResidualizationChart
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>,
Auto Trait Implementations§
impl Freeze for ParametricResidualizationChart
impl RefUnwindSafe for ParametricResidualizationChart
impl Send for ParametricResidualizationChart
impl Sync for ParametricResidualizationChart
impl Unpin for ParametricResidualizationChart
impl UnsafeUnpin for ParametricResidualizationChart
impl UnwindSafe for ParametricResidualizationChart
Blanket Implementations§
impl<T> Allocation for T
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> DistributionExt for Twhere
T: ?Sized,
impl<T> DistributionExt for Twhere
T: ?Sized,
impl<T, U> Imply<T> for U
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,
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.