shrinkage::GroupLasso
Shrinkage for Rust · rust · 0.3.0
Source: src/penalty/group_lasso.rs
Group LASSO lambda * sum_g weights[g] * ||beta[g]||₂.
Groups address optimization-scale coefficients and exclude intercepts. The supplied DisjointGroups fixes the coefficient count, explicit weights, and coverage policy. There is no implicit group-size scaling. Zero-weight groups and uncovered coefficients are unpenalized. Singleton groups give weighted L1, and zero lambda gives the zero penalty.
The exact proximal map shrinks each block by max(1 - step * lambda * weight / ||input[g]||₂, 0) and copies free coordinates. Value evaluation and the prox take linear time and allocate no scratch storage. Gaussian fits use crate::ProximalGradient's reusable product and iteration workspaces through both typed and runtime problems.
use ;
let groups = new?;
let penalty = new;
assert_eq!;
let mut output = ;
penalty.prox?;
assert!;
assert_eq!;
Inherent implementation
Source: src/penalty/group_lasso.rs
groups
Source: src/penalty/group_lasso.rs
Immutable group definitions, weights, and coverage policy.
lambda
Source: src/penalty/group_lasso.rs
Configured multiplier of all explicit group weights.
new
Source: src/penalty/group_lasso.rs
Set the overall strength and validated groups. Strength is checked on use.
Implementation of Clone
Source: src/penalty/group_lasso.rs
clone
Source: src/penalty/group_lasso.rs
Implementation of Debug
Source: src/penalty/group_lasso.rs
fmt
Source: src/penalty/group_lasso.rs
Implementation of Penalty
Source: src/penalty/group_lasso.rs
Error
Source: src/penalty/group_lasso.rs
type Error = FitError;validate_input
Source: src/penalty/group_lasso.rs
value
Source: src/penalty/group_lasso.rs
Implementation of ProximalPenalty
Source: src/penalty/group_lasso.rs
prox
Source: src/penalty/group_lasso.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
