shrinkage::Penalty
Shrinkage for Rust · rust · 0.3.0
Source: src/penalty.rs
The complete penalty R(beta) on optimization-scale coefficients.
A value alone does not imply a proximal map or a valid coordinate update.
Associated types
Error
Source: src/penalty.rs
type Error;Failure returned by penalty evaluation.
Methods
validate_input
Source: src/penalty.rs
Check parameters and coefficient compatibility independently of scaling.
The default evaluates the penalty and discards its value. Implementations can override this to validate without value arithmetic, allowing a zero Scaled penalty to avoid overflow in a value that is never used.
Errors
Reject invalid coefficients or parameters. The default also propagates errors from value evaluation.
value
Source: src/penalty.rs
Evaluate the penalty, including its strength.
Errors
Returns an error for invalid coefficients, parameters, or arithmetic.
Implementation of Penalty
Source: src/penalty.rs
Implementation of Penalty
Source: src/penalty.rs
Implementation of Penalty
Source: src/penalty.rs
Implementation of Penalty
Source: src/penalty/chain_fused_lasso.rs
Implementation of Penalty
Source: src/penalty/clustered_lasso.rs
Implementation of Penalty
Source: src/penalty/group_lasso.rs
Implementation of Penalty
Source: src/penalty/slope.rs
Implementation of Penalty
Source: src/penalty/axis.rs
Implementation of Penalty
Source: src/penalty/scaled.rs
Implementation of Penalty
Source: src/path/penalty.rs
Implementation of Penalty
Source: src/penalty/masked.rs
