pub struct ConstantCurvatureBasisSpec {
pub center_strategy: CenterStrategy,
pub kappa: f64,
pub length_scale: f64,
pub double_penalty: bool,
pub identifiability: ConstantCurvatureIdentifiability,
}Expand description
Constant-curvature smooth configuration (curv(x, z, kappa = …)).
The chart inputs are the raw feature columns interpreted as
κ-stereographic chart coordinates: any finite point for κ ≥ 0, the open
ball ‖x‖ < 1/√(−κ) for κ < 0. The default κ = 0 reproduces a Euclidean
exponential-kernel smooth (in the doubled κ = 0 chart gauge), so the term
is safe to use as a drop-in flat smooth until κ becomes a fitted
ψ-coordinate.
Fields§
§center_strategy: CenterStrategyCenter/knot selection strategy in chart coordinates. Deliberately κ-independent (see the module-level κ-contract).
kappa: f64Sectional curvature κ of the latent/feature geometry. Fixed at build time; the later ψ-channel stage promotes it to a fitted outer coordinate consuming this module’s exact κ-jets.
length_scale: f64Geodesic kernel range ℓ in K_κ = exp(−d_κ/ℓ). The 0.0 sentinel
requests the κ-independent auto initialization
(realized_constant_curvature_length_scale); the realized value is
persisted in BasisMetadata::ConstantCurvature and frozen back into
the spec for predict-time replay.
double_penalty: boolAdd the ridge-like shrinkage penalty alongside the RKHS Gram penalty.
identifiability: ConstantCurvatureIdentifiabilityRealized-design identifiability policy (see type docs).
Trait Implementations§
Source§impl Clone for ConstantCurvatureBasisSpec
impl Clone for ConstantCurvatureBasisSpec
Source§fn clone(&self) -> ConstantCurvatureBasisSpec
fn clone(&self) -> ConstantCurvatureBasisSpec
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 ConstantCurvatureBasisSpec
impl Debug for ConstantCurvatureBasisSpec
Source§impl Default for ConstantCurvatureBasisSpec
impl Default for ConstantCurvatureBasisSpec
Source§impl<'de> Deserialize<'de> for ConstantCurvatureBasisSpec
impl<'de> Deserialize<'de> for ConstantCurvatureBasisSpec
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 ConstantCurvatureBasisSpec
impl RefUnwindSafe for ConstantCurvatureBasisSpec
impl Send for ConstantCurvatureBasisSpec
impl Sync for ConstantCurvatureBasisSpec
impl Unpin for ConstantCurvatureBasisSpec
impl UnsafeUnpin for ConstantCurvatureBasisSpec
impl UnwindSafe for ConstantCurvatureBasisSpec
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.