shrinkage::GapSafeDatafit
Shrinkage for Rust · rust · 0.3.0
Source: src/screening.rs
Loss-side capability for original-loss Gap Safe certificates.
Methods
dual_candidate
Source: src/screening.rs
Construct a domain-feasible candidate, including any intercept equality.
Errors
Reject invalid dimensions, inputs, or nonfinite arithmetic.
dual_objective
Source: src/screening.rs
Evaluate the dual objective, excluding penalty feasibility.
Errors
Reject a candidate outside the loss conjugate's domain.
fenchel_gap
Source: src/screening.rs
Evaluate the loss Fenchel gap without subtracting full objectives.
This is F(eta) + F_conjugate(-theta) + dot(eta, theta).
Errors
Reject incompatible dimensions, invalid domains, or nonfinite arithmetic.
finalize_dual
Source: src/screening.rs
Repair domain and equality constraints after floating-point scaling.
Errors
Reject invalid dimensions or arithmetic. A feasible zero fallback is valid.
strong_concavity
Source: src/screening.rs
Positive strong-concavity constant on the observation scale.
Implementation of GapSafeDatafit
Source: src/datafit/binomial.rs
Implementation of GapSafeDatafit
Source: src/datafit/gaussian.rs
