shrinkage::PathOptions
Shrinkage for Rust · rust · 0.3.0
Source: src/path.rs
Options for a decreasing, log-spaced automatic regularization sequence.
Defaults to 100 points and an endpoint ratio of 0.01 when observations are fewer than features, or 0.0001 otherwise. Automatic paths stop early on deviance by default, after at least five points. Disable early stopping to fit the entire sequence. Losses without deviance support fit every point. Options are checked when fitting. A zero start generates zero strengths.
Inherent implementation
Source: src/path.rs
deviance_change_tolerance
Source: src/path.rs
Stop below this fractional decrease in consecutive deviances (1e-5). Zero disables this criterion. Only converged, nonincreasing fits qualify.
deviance_ratio_tolerance
Source: src/path.rs
Stop at this explained fraction of null deviance; defaults to 0.999.
early_stopping
Source: src/path.rs
Enable deviance-based early stopping for automatic paths (the default).
lambda_min_ratio
Source: src/path.rs
Set the finite endpoint ratio in (0, 1].
lambda_start
Source: src/path.rs
Override the starting value with a finite, nonnegative strength. The result still records the independently calculated true threshold.
min_points
Source: src/path.rs
Require this many fitted points before early stopping; defaults to five. Shorter requested sequences are fitted completely.
new
Source: src/path.rs
Use the default sequence length and dimension-dependent endpoint ratio.
nlambda
Source: src/path.rs
Set a strictly positive number of points; one returns the starting value.
Implementation of Clone
Source: src/path.rs
clone
Source: src/path.rs
Implementation of Copy
Source: src/path.rs
Implementation of Debug
Source: src/path.rs
fmt
Source: src/path.rs
Implementation of Default
Source: src/path.rs
default
Source: src/path.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
