Skip to main content

Module model_types

Module model_types 

Source
Expand description

crate::model_types → fit-result / penalty-spec carriers now in gam-solve, plus the finite-validation helper from gam-problem that gam-solve only re-exports crate-internally.

Structs§

ActiveLinearConstraintBlock
Active row block of the joint linear inequality constraint matrix at the converged inner iterate.
AdaptiveRegularizationOptions
CriterionCertificate
First-order optimality certificate: gradient-vs-objective FD audit at the returned optimum (#934).
FitArtifacts
Post-fit artifacts needed by downstream diagnostics/inference without re-running PIRLS.
FitGeometry
Working-set geometry at convergence needed by ALO and other post-fit diagnostics. Only populated when the inner solver provides the data.
FitInference
FitOptions
FittedBlock
Inference quantities for one coefficient block.
ProjectedKktResidual
KKT residual r = grad_beta L_pen(beta_hat) at the converged inner iterate, tagged with the exact represented subspace.
UnifiedFitResult
Unified fit result for all model types (standard GAM, GAMLSS, survival).
UnifiedFitResultParts

Enums§

BlockRole
Role of a coefficient block within a multi-parameter model.
CoefficientPriorMean
Programmatic prior mean for a coefficient penalty block.
Dispersion
Dispersion contract used by inferential covariance and reference distributions.
EstimationError
A comprehensive error type for the model estimation process.
ExecutionPath
Truthful execution-path classifier for a fit’s hot inner solve (issue #1017).
FittedLinkState
KktResidualSubspace
Subspace represented by a stored KKT residual.
PenaltySpec
A penalty specification for the public estimate API.

Functions§

ensure_finite_scalar
Public wrapper returning String errors for use outside the estimation module.
ensure_finite_scalar_estimation
saved_latent_cloglog_state_from_fit
saved_mixture_state_from_fit
saved_sas_state_from_fit
validate_all_finite
Public wrapper returning String errors for use outside the estimation module.
validate_dense_hessian_export
Validate the structural integrity of an exported penalized Hessian.
validate_explicit_dense_hessian_for_whitening
Validate that a saved penalized Hessian is an explicit dense precision matrix suitable for HMC/NUTS whitening.