shrinkage::Masked
Shrinkage for Rust · rust · 0.3.0
Source: src/penalty/masked.rs
A complete penalty with explicit unpenalized coordinates.
true excludes a coordinate, and false retains its penalty. The mask must have one entry per optimization-scale coefficient, excluding any intercept. Parameters and mask length are checked during evaluation and fitting. Excluded coordinates contribute no penalty and are copied unchanged by the proximal map. The wrapper owns its mask and allocates no evaluation workspace.
use ;
let penalty = new;
assert_eq!;
let mut output = ;
penalty.prox?;
assert_eq!;
A coupled penalty without an implemented restriction cannot be masked, even if it supplies a complete proximal map:
use ;
let penalty = new;
Runtime selection must preserve the restricted capability before masking:
use ;
let penalty: = Boxnew;
let masked = new;
Inherent implementation
Source: src/penalty/masked.rs
new
Source: src/penalty/masked.rs
Set the unpenalized mask and inner penalty, checked when used.
penalty
Source: src/penalty/masked.rs
Borrow the complete inner penalty, including its strengths.
unpenalized
Source: src/penalty/masked.rs
One flag per coefficient; true marks an unpenalized coordinate.
Implementation of Clone
Source: src/penalty/masked.rs
clone
Source: src/penalty/masked.rs
Implementation of Debug
Source: src/penalty/masked.rs
fmt
Source: src/penalty/masked.rs
Implementation of Penalty
Source: src/penalty/masked.rs
Error
Source: src/penalty/masked.rs
type Error = FitError;validate_input
Source: src/penalty/masked.rs
value
Source: src/penalty/masked.rs
Implementation of ProximalPenalty
Source: src/penalty/masked.rs
prox
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
