Re-exports§
pub use penalty_spec::PenaltySpec;pub use penalty_spec::validate_penalty_spec_shape;pub use analytic_penalties::ARDPenalty;pub use analytic_penalties::AnalyticPenalty;pub use analytic_penalties::AnalyticPenaltyKind;pub use analytic_penalties::AnalyticPenaltyOp;pub use analytic_penalties::AnalyticPenaltyRegistry;pub use analytic_penalties::BlockOrthogonalityPenalty;pub use analytic_penalties::BlockSparsityPenalty;pub use analytic_penalties::DecoderIncoherencePenalty;pub use analytic_penalties::DifferenceOpKind;pub use analytic_penalties::EdgeRestriction;pub use analytic_penalties::FrozenAnalyticPenaltyOp;pub use analytic_penalties::IBPAssignmentPenalty;pub use analytic_penalties::IbpHessianDiagThirdChannels;pub use analytic_penalties::IsometryDuchonRadialSource;pub use analytic_penalties::IsometryPenalty;pub use analytic_penalties::IsometryReference;pub use analytic_penalties::IvaeRidgeMeanGauge;pub use analytic_penalties::JumpReLUPenalty;pub use analytic_penalties::MechanismSparsityPenalty;pub use analytic_penalties::NestedPrefixPenalty;pub use analytic_penalties::NuclearNormPenalty;pub use analytic_penalties::OrthogonalityPenalty;pub use analytic_penalties::ParametricRowPrecisionPriorPenalty;pub use analytic_penalties::PenaltyConcavity;pub use analytic_penalties::PenaltyTier;pub use analytic_penalties::PsiSlice;pub use analytic_penalties::RowPrecisionPriorPenalty;pub use analytic_penalties::ScadMcpPenalty;pub use analytic_penalties::ScalarWeightSchedule;pub use analytic_penalties::ShapeMonotonicityPenalty;pub use analytic_penalties::SheafConsistencyPenalty;pub use analytic_penalties::SoftmaxAssignmentSparsityPenalty;pub use analytic_penalties::SparsityKind;pub use analytic_penalties::SparsityPenalty;pub use analytic_penalties::TopKActivationPenalty;pub use analytic_penalties::TotalVariationPenalty;
Modules§
- analytic_
penalties - Analytic penalty primitives for the three-tier (beta / ext-coord / rho) engine.
- basis
- Spline / spatial / spherical basis construction, penalties, and the
hyperparameter (
ψ) derivative machinery that the smooth terms build on. - chunked_
kernel_ design - Spatial-kernel design operators for basis construction.
- construction
- decoders
- Front-end-agnostic decoder / transcoder primitives.
- dictionary
- geometry
- grid_
spline_ 2d - Streaming scatter-add 2-D smoother: K×K tensor-product cubic B-splines with the EXACT anisotropic biharmonic penalty and REML-selected λ.
- inference
- Basis/structure-level inference instruments that descended into
gam-termsduring the #1521 crate carve. - kronecker
- latent
LatentCoord— per-row latent coordinates as a first-class gamfit parameter.- penalty_
spec - Penalty specification for the public estimate API.
- smooth
- smooth_
overrides - Apply the
gamfit.fit(..., smooths={symbol: BasisDescriptor})Python override registry onto a freshly-builtTermCollectionSpec. - structure
- term_
builder - Term construction: bridge from parsed formula terms to
TermCollectionSpec. - terms
- torch_
dispatch - Dispatch table for the torch fit entry — single source of truth for which
Python
Smoothsubclasses the torch.fit autograd glue recognises.
Macros§
Enums§
- Estimation
Error - Re-export of the neutral estimation error so crate-local macros
(
bail_invalid_estim!) and call sites can referencecrate::EstimationError. A comprehensive error type for the model estimation process. - Weight
Field - Per-observation behavioral-metric field
W_n ∈ ℝ^{p × p}, stored in low-rank factored formW_n = U_n U_n^TwithU_n ∈ ℝ^{p × r_n}.