shrinkage::LassoFit
Shrinkage for Rust · rust · 0.3.0
Source: src/fit/lasso.rs
Owned original-scale parameters, preprocessing metadata, and diagnostics.
Check Self::termination before treating a fit as converged. Diagnostics refer to the optimization-scale penalty even though coefficients use the original scale.
Inherent implementation
Source: src/fit/lasso.rs
coefficients
Source: src/fit/lasso.rs
Original-scale coefficients, in training-column order.
dual_certificate
Source: src/fit/lasso.rs
Feasible dual vector theta, with ||X_tilde' theta||_inf <= lambda and sum(theta) = 0 when an intercept was fitted, up to floating-point error. At zero penalty, the certificate can be zero and its gap can be loose.
dual_objective
Source: src/fit/lasso.rs
Gaussian dual objective D(theta) = y' theta - n ||theta||² / 2.
duality_gap
Source: src/fit/lasso.rs
Nonnegative gap G(beta_0, beta, theta) = P(beta_0, beta) - D(theta).
intercept
Source: src/fit/lasso.rs
Original-scale intercept, including the correction for centering.
iterations
Source: src/fit/lasso.rs
Number of coordinate sweeps over the current working set performed.
kkt_violation
Source: src/fit/lasso.rs
Maximum absolute KKT violation, as defined by crate::Lasso::tolerance.
objective
Source: src/fit/lasso.rs
Final primal objective P(beta_0, beta) = ||residual||² / (2n) + lambda * ||beta||₁.
predict
Source: src/fit/lasso.rs
Sized> Predict from raw columns in the same order as the training design.
Uses original-scale parameters, without estimating new centers or scales. Empty prediction batches return an empty vector.
Errors
Returns an error for a feature-count mismatch, nonfinite input, or nonfinite prediction arithmetic.
preprocessing
Source: src/fit/lasso.rs
Fitted training-column centers and scales.
reference_loss
Source: src/fit/lasso.rs
Averaged loss at zero coefficients and the optimal enabled intercept.
stopping_criterion
Source: src/fit/lasso.rs
Criterion selected for this fit.
stopping_threshold
Source: src/fit/lasso.rs
Threshold applied to the selected criterion.
stopping_value
Source: src/fit/lasso.rs
Final value of the selected criterion.
termination
Source: src/fit/lasso.rs
Whether the fit converged or exhausted its iteration budget.
working_set_diagnostics
Source: src/fit/lasso.rs
Work performed by heuristic feature selection, separate from safe screening.
Implementation of Clone
Source: src/fit/lasso.rs
clone
Source: src/fit/lasso.rs
Implementation of Debug
Source: src/fit/lasso.rs
fmt
Source: src/fit/lasso.rs
Implementation of ValidationFit
Source: src/cross_validation.rs
predict
Source: src/cross_validation.rs
Sized> termination
Source: src/cross_validation.rs
Implementation of Freeze
Implementation of RefUnwindSafe
Implementation of Send
Implementation of Sync
Implementation of Unpin
Implementation of UnsafeUnpin
Implementation of UnwindSafe
Implementation of Any
Implementation of Borrow
Implementation of BorrowMut
Implementation of ByRef
Implementation of CastableFrom
Implementation of CastableFrom
Implementation of CloneToUninit
Implementation of From
Implementation of Imply
Implementation of Into
Implementation of IntoEither
Implementation of Pointable
Implementation of Read
Implementation of Same
Implementation of SupersetOf
Implementation of ToOwned
Implementation of TryFrom
Implementation of TryInto
