pub struct TermArtifact {
pub identity: TermIdentityKey,
pub role: TermRole,
pub basis_meta: SerializableBasisMeta,
pub joint_null_rotation: Option<SerializableMatrix>,
pub raw_beta: Vec<f64>,
pub rho_for_term: Vec<f64>,
}Expand description
Per-term captured state. Stores RAW per-term β (lifted from the converged
reduced θ via the fit’s crate::gauge::Gauge at capture time —
the identifiability transform T is fit-specific and meaningless in another
fit, so we persist the gauge-free raw coefficients) plus the term’s ρ
slice for transfer.
Fields§
§identity: TermIdentityKey§role: TermRole§basis_meta: SerializableBasisMetaSerializable structural subset of the term’s basis metadata.
BasisMetadata itself is not Serialize (it carries large
data-derived arrays), so we persist only the fields needed to
re-derive identity and reason about the basis at consume time.
joint_null_rotation: Option<SerializableMatrix>Joint-null absorption rotation captured at fit time, if any. Stored as
a flat row-major matrix so the function-space β projection (Phase 2)
can replay it; None when the term carried no rotation.
raw_beta: Vec<f64>RAW per-term coefficients (post-gauge-lift, pre-identifiability), concatenated in the term’s raw column order.
rho_for_term: Vec<f64>Converged ρ (log smoothing parameters) for this term’s penalties.
Implementations§
Trait Implementations§
Source§impl Clone for TermArtifact
impl Clone for TermArtifact
Source§fn clone(&self) -> TermArtifact
fn clone(&self) -> TermArtifact
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 TermArtifact
impl Debug for TermArtifact
Source§impl<'de> Deserialize<'de> for TermArtifact
impl<'de> Deserialize<'de> for TermArtifact
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 TermArtifact
impl RefUnwindSafe for TermArtifact
impl Send for TermArtifact
impl Sync for TermArtifact
impl Unpin for TermArtifact
impl UnsafeUnpin for TermArtifact
impl UnwindSafe for TermArtifact
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.