shrinkage::Normalization
Shrinkage for Rust · rust · 0.3.0
Source: src/normalization.rs
Training-column normalization applied before fitting.
Penalties act on normalized coefficients. Fitted coefficients and predictions use the original input scale. Except for Self::Auto, choices are independent of whether an intercept is fitted. Explicit centering without a fitted intercept can therefore induce a fixed original-scale intercept.
Norm and maximum-absolute-value scales use the columns after any requested centering. Standard deviations and ranges are invariant to centering. Computed zero scales are replaced with one.
Variants
Auto
Source: src/normalization.rs
AutoDivide by population standard deviations, centering by column means only when fitting an intercept. This is the default fitting policy.
Center
Source: src/normalization.rs
CenterSubtract column means without scaling.
Custom
Source: src/normalization.rs
Custom Choose centering and scaling independently using LazyMatrix's options.
Use Scaling::Sd { df: 1 } for sample standard deviations, or combine Centering::Median with Scaling::QuantileRange for robust scaling.
center
Source: src/normalization.rs
center: CenteringHow to center each column.
scale
Source: src/normalization.rs
scale: ScalingHow to scale each column after centering.
L1
Source: src/normalization.rs
L1Divide by column L1 norms without centering.
L2
Source: src/normalization.rs
L2Divide by column L2 norms without centering.
MaxAbs
Source: src/normalization.rs
MaxAbsDivide by column maximum absolute values without centering.
MinMax
Source: src/normalization.rs
MinMaxSubtract column minima and divide by column ranges.
None
Source: src/normalization.rs
NoneUse the raw design without centering or scaling.
Standardize
Source: src/normalization.rs
StandardizeSubtract column means and divide by population standard deviations.
Inherent implementation
Source: src/normalization.rs
Implementation of Clone
Source: src/normalization.rs
clone
Source: src/normalization.rs
Implementation of Copy
Source: src/normalization.rs
Implementation of Debug
Source: src/normalization.rs
fmt
Source: src/normalization.rs
Implementation of Default
Source: src/normalization.rs
default
Source: src/normalization.rs
Implementation of Eq
Source: src/normalization.rs
Implementation of PartialEq
Source: src/normalization.rs
eq
Source: src/normalization.rs
Implementation of StructuralPartialEq
Source: src/normalization.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 Boilerplate
Implementation of Borrow
Implementation of BorrowMut
Implementation of ByRef
Implementation of CastableFrom
Implementation of CastableFrom
Implementation of CloneToUninit
Implementation of Equivalent
Implementation of Equivalent
Implementation of From
Implementation of Imply
Implementation of Into
Implementation of IntoEither
Implementation of Pointable
Implementation of Read
Implementation of Same
Implementation of Scalar
Implementation of SupersetOf
Implementation of ToOwned
Implementation of TryFrom
Implementation of TryInto
