Skip to main content

Module custom_family_blockwise

Module custom_family_blockwise 

Source
Expand description

Neutral blockwise custom-family contract primitives shared by the CustomFamily trait layer (gam-model-api) and the solver (gam-solve): the IRLS weight / ridge floors, the block-spec consistency validator, and the exact-Newton outer-curvature payload.

These carry no dependency on the CustomFamily trait itself, so they live in the neutral gam-problem crate and are re-exported upward, keeping a single definition shared across crates.

Structs§

ExactNewtonOuterCurvature
Scale-aware exact joint curvature payload for the outer REML evaluator.

Constants§

CUSTOM_FAMILY_RIDGE_FLOOR
Default initial ridge δ for the explicit-stabilization Cholesky escalation schedule. Enters the quadratic term, the Laplace Hessian, and the penalty log-determinant via the active RidgePolicy.
CUSTOM_FAMILY_WEIGHT_FLOOR
Floor applied to IRLS working weights so downstream divisions cannot hit exact zero. Used as the default minweight in CustomFamilyOptions and mirrored in tests that override it.

Functions§

validate_blockspec_consistency