shrinkage::PathPenalty
Shrinkage for Rust · rust · 0.3.0
Source: src/path/penalty.rs
A penalty shape that supplies thresholds and complete penalties along a path.
L1 and ridge replace their scalar strength. Elastic net retains its mixing parameter; SLOPE multiplies its supplied base rank weights. Clustered and chain fused lasso scale both supplied strengths, preserving their ratio. Implementations must use the same coefficient scale as their proximal map.
Associated types
AtStrength
Source: src/path/penalty.rs
type AtStrength: ProximalPenalty;Complete penalty produced at a scalar strength.
Methods
at_strength
Source: src/path/penalty.rs
Construct a complete penalty at a finite, nonnegative scalar strength.
Errors
Reject invalid shape parameters, strengths, or arithmetic.
maximum_penalty
Source: src/path/penalty.rs
Smallest strength that makes zero optimal for the supplied null gradient.
Errors
Reject invalid shapes, dimensions, gradients, or nonfinite arithmetic.
path_anchor
Source: src/path/penalty.rs
Finite starting anchor for automatic sequences.
Errors
Reject shapes without a usable finite anchor. Ridge overrides this method with the L1 threshold divided by 0.001.
Implementation of PathPenalty
Source: src/path/penalty.rs
Implementation of PathPenalty
Source: src/path/penalty.rs
Implementation of PathPenalty
Source: src/path/penalty.rs
Implementation of PathPenalty
Source: src/path/penalty.rs
Implementation of PathPenalty
Source: src/path/penalty.rs
Implementation of PathPenalty
Source: src/path/penalty.rs
Implementation of PathPenalty
Source: src/path/penalty.rs
Implementation of PathPenalty
Source: src/path/penalty.rs
