shrinkage::ElasticNet
Shrinkage for Rust · rust · 0.3.0
Source: src/penalty.rs
Complete elastic-net penalty l1 * ||beta||₁ + l2 * ||beta||² / 2.
Inherent implementation
Source: src/penalty.rs
alpha
Source: src/penalty.rs
Configured mixing parameter, or its equivalent for positive independent strengths. Two independently supplied zero strengths have no mixing ratio.
from_alpha
Source: src/penalty.rs
Use lambda * (alpha * ||beta||₁ + (1 - alpha) * ||beta||² / 2). Lambda must be finite and nonnegative, and alpha must lie in [0, 1]. Validation occurs during evaluation or fitting. Automatic paths retain alpha even when the supplied lambda is zero.
l1
Source: src/penalty.rs
Configured L1 strength.
l2
Source: src/penalty.rs
Configured squared L2 strength.
new
Source: src/penalty.rs
Set the L1 and squared L2 strengths independently, checked when used.
Implementation of Clone
Source: src/penalty.rs
clone
Source: src/penalty.rs
Implementation of CoordinatePenalty
Source: src/penalty/coordinate.rs
coordinate_violation
Source: src/penalty/coordinate.rs
minimize_coordinate
Source: src/penalty/coordinate.rs
Implementation of Copy
Source: src/penalty.rs
Implementation of Debug
Source: src/penalty.rs
fmt
Source: src/penalty.rs
Implementation of PathPenalty
Source: src/path/penalty.rs
AtStrength
Source: src/path/penalty.rs
type AtStrength = ElasticNet;at_strength
Source: src/path/penalty.rs
maximum_penalty
Source: src/path/penalty.rs
path_anchor
Source: src/path/penalty.rs
Implementation of Penalty
Source: src/penalty.rs
Error
Source: src/penalty.rs
type Error = FitError;validate_input
Source: src/penalty.rs
value
Source: src/penalty.rs
Implementation of ProximalPenalty
Source: src/penalty.rs
prox
Source: src/penalty.rs
Implementation of RestrictedProximalPenalty
Source: src/penalty/masked.rs
prox_restricted
Source: src/penalty/masked.rs
value_restricted
Source: src/penalty/masked.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
