pub struct HybridSplitSelection {
pub atoms: Vec<HybridAtomChoice>,
pub total_negative_log_evidence: f64,
pub total_parameters: usize,
pub curved_atom_count: usize,
}Expand description
The evidence-selected split for a whole hybrid dictionary: the per-atom curved-vs-linear choices and the dictionary-level aggregates the EV-vs-Θ frontier reports against.
Fields§
§atoms: Vec<HybridAtomChoice>One adjudicated choice per atom slot, in slot order.
total_negative_log_evidence: f64Σ NLE across the selected per-atom parameterizations — the dictionary’s
summed rank-aware Laplace negative-log-evidence (lower wins). Because each
slot picks the argmin over {curved contribution, best straight line to the
response residual}, this is ≤ the sum of the per-slot LINEAR-candidate
NLEs. The linear baseline is the best straight line fit to each atom’s
leave-this-atom-out RESPONSE residual (#1202), the curved family’s nested
Θ = 0 member on common data — so this is a genuine data-level
match-or-beat dominance, not a post-hoc curve-simplification one.
total_parameters: usizeΣ P across the selected parameterizations — the dictionary’s total
free-parameter price (the matched-active-budget accounting).
curved_atom_count: usizeCount of slots that selected the curved parameterization.
Implementations§
Source§impl HybridSplitSelection
impl HybridSplitSelection
Sourcepub fn linear_atom_count(&self) -> usize
pub fn linear_atom_count(&self) -> usize
Count of slots that selected the linear special case (the linear tail).
Sourcepub fn is_pure_linear(&self) -> bool
pub fn is_pure_linear(&self) -> bool
true iff every slot selected linear — the pure-linear limit, reached
when every feature is straight (all Θ → 0).
Sourcepub fn is_pure_curved(&self) -> bool
pub fn is_pure_curved(&self) -> bool
true iff every slot selected curved — the pure-curved limit, reached
when every feature turns enough to pay for curvature.
Trait Implementations§
Source§impl Clone for HybridSplitSelection
impl Clone for HybridSplitSelection
Source§fn clone(&self) -> HybridSplitSelection
fn clone(&self) -> HybridSplitSelection
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreAuto Trait Implementations§
impl Freeze for HybridSplitSelection
impl RefUnwindSafe for HybridSplitSelection
impl Send for HybridSplitSelection
impl Sync for HybridSplitSelection
impl Unpin for HybridSplitSelection
impl UnsafeUnpin for HybridSplitSelection
impl UnwindSafe for HybridSplitSelection
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,
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.