shrinkage::CoordinatePenalty
Shrinkage for Rust · rust · 0.3.0
Source: src/penalty/coordinate.rs
A convex separable penalty with exact scalar updates and KKT checks.
The complete value must equal the sum of its coordinate terms. Coupled penalties, such as SLOPE and group lasso, do not satisfy this contract.
Methods
coordinate_violation
Source: src/penalty/coordinate.rs
Return the distance of zero from loss_gradient + subgradient_j(value). The result must be finite and nonnegative, in gradient units.
Errors
Reject invalid parameters, indices, inputs, or nonfinite arithmetic.
minimize_coordinate
Source: src/penalty/coordinate.rs
Minimize curvature * value² / 2 - linear * value + penalty_j(value). Curvature must be finite and nonnegative. At zero curvature, return a finite minimizer when one exists, or an error for an unbounded subproblem.
Errors
Reject invalid parameters, indices, inputs, or nonfinite arithmetic.
Implementation of CoordinatePenalty
Source: src/penalty/coordinate.rs
Implementation of CoordinatePenalty
Source: src/penalty/coordinate.rs
Implementation of CoordinatePenalty
Source: src/penalty/coordinate.rs
