shrinkage::CoefficientLayout
Shrinkage for Rust · rust · 0.3.0
Source: src/layout.rs
A feature-by-response coefficient matrix stored in response-major order.
Each response owns a contiguous vector of feature coefficients. Entry (feature, response) has index response * nfeatures + feature. Intercepts are separate and never appear in this layout. This CPU layout is provisional.
Inherent implementation
Source: src/layout.rs
index
Source: src/layout.rs
Flat index of a feature and response, or None for an invalid axis index.
is_empty
Source: src/layout.rs
Whether there are no feature coefficients.
len
Source: src/layout.rs
Number of coefficient entries, excluding intercepts.
new
Source: src/layout.rs
Specify both axes, allowing zero features but requiring a response.
Errors
Reject zero responses or a coefficient count that overflows usize.
nfeatures
Source: src/layout.rs
Number of training features.
nresponses
Source: src/layout.rs
Number of responses.
Implementation of Clone
Source: src/layout.rs
clone
Source: src/layout.rs
Implementation of Copy
Source: src/layout.rs
Implementation of Debug
Source: src/layout.rs
fmt
Source: src/layout.rs
Implementation of Eq
Source: src/layout.rs
Implementation of PartialEq
Source: src/layout.rs
eq
Source: src/layout.rs
Implementation of StructuralPartialEq
Source: src/layout.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
