Skip to main content

FittedAtom

Struct FittedAtom 

Source
pub struct FittedAtom {
    pub name: String,
    pub topology: AtomTopology,
    pub frame: Array2<f64>,
    pub ard_variances: Option<Array1<f64>>,
    pub lowering_error: f64,
    pub chart_canonicalized: bool,
    pub inner_fit: Option<AtomInnerFit>,
}
Expand description

One fitted atom as the certificate sees it.

frame is the fitted decoder frame whose columns the isometry generators rotate: an (output_dim, latent_dim) matrix whose column a is the fitted image of latent axis a in output space (e.g. the decoder Jacobian columns at the atom’s centroid, or the leading decoder directions). The isometry generators of Isom(M_k) act on these columns; the certificate lifts that action to a tangent direction on the flattened decoder frame.

Fields§

§name: String§topology: AtomTopology§frame: Array2<f64>

(output_dim, latent_dim) fitted decoder frame.

§ard_variances: Option<Array1<f64>>

ARD prior variances (one per latent axis of this atom), used to detect equal-ARD eigenspaces inside which a rotation is unpinned by the prior. None ⇒ no ARD prior on this atom (every within-frame rotation is then a candidate generator, pinned-or-not decided solely by the data + the isometry penalty).

§lowering_error: f64

Lowering-error scale (#995), in [0, 1]: the mass-weighted relative dispersion of the atom’s per-row decoder tangents around the mean frame the certificate compresses them into, Σ_n a_n Σ_ax ‖t_ax(n) − frame[:,ax]‖² / Σ_n a_n Σ_ax ‖t_ax(n)‖².

0 ⇒ the frame represents every row exactly (hand-built fixtures, flat decoders) and the certificate’s verdicts within this atom are at full resolution. Values toward 1 ⇒ a curved decoder whose tangent field disperses strongly (e.g. a full circle, whose tangents average to ≈ 0): the mean-frame lowering then cannot distinguish gauge motion from genuine curvature, so the verdict tolerance for generators touching this atom is calibrated up to this scale — the certificate refuses to claim a pin it cannot resolve, the same honesty contract as the diffeomorphism-unpinned escalation.

§chart_canonicalized: bool

#1019 stage 1: true when the atom’s d = 1 latent chart was pinned post-fit to its arc-length (unit-speed) canonical representative. #1019 stage 2: true as well when a d = 2 torus atom’s chart was pinned post-fit to the minimum-isometry-defect flow representative, in which case the residual chart freedom is Isom(T², flat) = U(1)² ⋊ D₄. The certificate then records that this atom’s continuous chart (reparameterization) freedom is pinned by canonicalization — a provenance distinct from curvature/penalty pinning (VerdictProvenance::PinnedByCanonicalization) — and that the residual chart freedom is the finite isometry group of the reference manifold for d = 1 charts: rotation + reflection (O(2)) on the circle, reflection + translation on the interval.

§inner_fit: Option<AtomInnerFit>

Per-atom inner-decoder-smooth byproducts harvested at fit time, the single source the post-PIRLS atom inference reports (AtomFunctionalReport #1097, AtomSmoothSignificance #1103) consume in dictionary_report.

The certificate path that builds FittedSaeManifold does so without a fit harness in scope, so it leaves this None; callers that own the fitted term attach it through FittedAtom::with_inner_fit (the term builder fills it from the live per-atom basis, decoder, assignment mass, and smoothness Gram). When None, both reports below are None: the genuine prerequisite — the post-fit inner-smooth design, penalized Hessian, and row scores — is simply not present on a bare certificate-only FittedSaeManifold.

Implementations§

Source§

impl FittedAtom

Source

pub fn with_inner_fit(self, inner_fit: AtomInnerFit) -> Self

Attach the inner-decoder-smooth byproducts harvested at fit time. The term builder calls this so dictionary_report can produce the three post-PIRLS atom inference reports.

Trait Implementations§

Source§

impl Clone for FittedAtom

Source§

fn clone(&self) -> FittedAtom

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for FittedAtom

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Allocation for T
where T: RefUnwindSafe + Send + Sync,

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> ByRef<T> for T

Source§

fn by_ref(&self) -> &T

Source§

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> DistributionExt for T
where T: ?Sized,

Source§

fn rand<T>(&self, rng: &mut (impl Rng + ?Sized)) -> T
where Self: Distribution<T>,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Imply<T> for U
where T: ?Sized, U: ?Sized,

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

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 more
Source§

impl<T> Pointable for T

Source§

const ALIGN: usize

The alignment of pointer.
Source§

type Init = T

The type for initializers.
Source§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
Source§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
Source§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
Source§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
Source§

impl<T> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<SS, SP> SupersetOf<SS> for SP
where SS: SubsetOf<SP>,

Source§

fn to_subset(&self) -> Option<SS>

The inverse inclusion map: attempts to construct self from the equivalent element of its superset. Read more
Source§

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

Use with care! Same as self.to_subset but without any property checks. Always succeeds.
Source§

fn from_subset(element: &SS) -> SP

The inclusion map: converts self to the equivalent element of its superset.
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V