pub struct PenaltyConfig<'a> {
pub canonical_penalties: &'a [CanonicalPenalty],
pub balanced_penalty_root: Option<&'a Array2<f64>>,
pub reparam_invariant: Option<&'a ReparamInvariant>,
pub p: usize,
pub coefficient_lower_bounds: Option<&'a Array1<f64>>,
pub linear_constraints_original: Option<&'a LinearInequalityConstraints>,
pub penalty_shrinkage_floor: Option<f64>,
pub kronecker_factored: Option<&'a KroneckerFactoredBasis>,
}Fields§
§canonical_penalties: &'a [CanonicalPenalty]Block-local canonical penalties with precomputed roots and spectral data.
This is the single canonical penalty representation — no full-width
rank × p roots are stored. When the reparameterization engine needs
full-width roots, they are derived on-the-fly from these block-local roots.
balanced_penalty_root: Option<&'a Array2<f64>>§reparam_invariant: Option<&'a ReparamInvariant>§p: usize§coefficient_lower_bounds: Option<&'a Array1<f64>>§linear_constraints_original: Option<&'a LinearInequalityConstraints>§penalty_shrinkage_floor: Option<f64>Relative shrinkage floor for eigenvalues of the penalized block.
If Some(epsilon), a rho-independent ridge of epsilon * max_balanced_eigenvalue
is added to prevent barely-penalized directions from causing pathological
non-Gaussianity in the posterior. Typical value: 1e-6. None disables.
kronecker_factored: Option<&'a KroneckerFactoredBasis>When set, the penalties have Kronecker (tensor-product) structure. The reparameterization engine will use factored Qs = U_1 ⊗ … ⊗ U_d instead of eigendecomposing the full p×p balanced penalty.
Auto Trait Implementations§
impl<'a> Freeze for PenaltyConfig<'a>
impl<'a> !RefUnwindSafe for PenaltyConfig<'a>
impl<'a> Send for PenaltyConfig<'a>
impl<'a> Sync for PenaltyConfig<'a>
impl<'a> Unpin for PenaltyConfig<'a>
impl<'a> UnsafeUnpin for PenaltyConfig<'a>
impl<'a> !UnwindSafe for PenaltyConfig<'a>
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
Source§impl<T> DistributionExt for Twhere
T: ?Sized,
impl<T> DistributionExt for Twhere
T: ?Sized,
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
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.