shrinkage::ValidationMetric
Shrinkage for Rust · rust · 0.3.0
Source: src/cross_validation/metric.rs
Validation losses averaged over held-out observations; lower is better.
Prediction inputs are original-scale linear predictors, including logits for binomial scores. Scores exclude the penalty and use no training-size correction. Binomial deviance subtracts the fractional-response saturated loss before doubling, whereas log loss is the negative log likelihood.
Variants
BinomialDeviance
Source: src/cross_validation/metric.rs
BinomialDevianceBinomial mean deviance, twice the excess loss above saturation.
LogLoss
Source: src/cross_validation/metric.rs
LogLossBinomial mean negative log likelihood, evaluated stably from logits.
MeanAbsoluteError
Source: src/cross_validation/metric.rs
MeanAbsoluteErrorGaussian mean absolute prediction error.
MeanSquaredError
Source: src/cross_validation/metric.rs
MeanSquaredErrorGaussian mean squared error, twice the fitting loss.
Inherent implementation
Source: src/cross_validation/metric.rs
score
Source: src/cross_validation/metric.rs
Evaluate a score on equally weighted held-out observations.
Errors
Reject empty or mismatched inputs, invalid responses, and nonfinite predictors or arithmetic. Binomial responses must lie in [0, 1].
Implementation of Clone
Source: src/cross_validation/metric.rs
clone
Source: src/cross_validation/metric.rs
Implementation of Copy
Source: src/cross_validation/metric.rs
Implementation of Debug
Source: src/cross_validation/metric.rs
fmt
Source: src/cross_validation/metric.rs
Implementation of Eq
Source: src/cross_validation/metric.rs
Implementation of PartialEq
Source: src/cross_validation/metric.rs
eq
Source: src/cross_validation/metric.rs
Implementation of StructuralPartialEq
Source: src/cross_validation/metric.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
