shrinkage::MultivariateGaussian
Shrinkage for Rust · rust · 0.3.0
Source: src/datafit/multivariate.rs
Gaussian loss ||Y - predictor||_F² / (2 * nobs).
Responses and predictors store each response column contiguously: entry (observation, response) has index response * nobs + observation. The loss sums over responses and averages over observations, so separable fits use the same penalty strengths as independent Gaussian fits. Each response has its own optional unpenalized intercept, enabled by default.
Inherent implementation
Source: src/datafit/multivariate.rs
fit_intercept
Source: src/datafit/multivariate.rs
Enable or disable the free intercept for every response. Explicit feature centering can still induce original-scale intercepts.
fits_intercept
Source: src/datafit/multivariate.rs
Whether fitting includes a free intercept for each response.
gradient
Source: src/datafit/multivariate.rs
Write (predictor - Y) / nobs in response-major order.
Errors
Reject invalid dimensions, nonfinite entries, or nonfinite arithmetic. Output is unspecified after an error.
new
Source: src/datafit/multivariate.rs
Borrow response-major observations with explicit dimensions. Dimensions and entries are checked during loss evaluation or fitting.
nobs
Source: src/datafit/multivariate.rs
Number of observations per response.
nresponses
Source: src/datafit/multivariate.rs
Number of response columns.
response
Source: src/datafit/multivariate.rs
Borrow response columns in response-major order.
Implementation of Clone
Source: src/datafit/multivariate.rs
clone
Source: src/datafit/multivariate.rs
Implementation of Copy
Source: src/datafit/multivariate.rs
Implementation of Datafit
Source: src/datafit/multivariate.rs
Error
Source: src/datafit/multivariate.rs
type Error = FitError;value
Source: src/datafit/multivariate.rs
Implementation of Debug
Source: src/datafit/multivariate.rs
fmt
Source: src/datafit/multivariate.rs
Implementation of NullModelDatafit
Source: src/path/datafit.rs
deviance
Source: src/path/datafit.rs
null_intercepts
Source: src/path/datafit.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
