shrinkage::CrossValidationFit
Shrinkage for Rust · rust · 0.3.0
Source: src/fit/cross_validation.rs
Fold paths, aggregated uncertainty, selected candidate, and full-data refits.
Fold scores are averaged with equal fold weights, even for unequal sizes. For K folds, SE = sqrt(sum((score - mean)^2) / (K * (K - 1))). These conventional fold standard errors do not account for dependence between overlapping training sets. All candidate fits must converge.
Inherent implementation
Source: src/fit/cross_validation.rs
assignments
Source: src/fit/cross_validation.rs
Held-out assignments in original observation order.
fit
Source: src/fit/cross_validation.rs
Selected fit from the full-data path, with original-scale parameters.
folds
Source: src/fit/cross_validation.rs
Training-fold paths in zero-based fold order.
lambda
Source: src/fit/cross_validation.rs
Selected full-data scalar strength, when the path supplies one.
mean_scores
Source: src/fit/cross_validation.rs
Equal-weight means of held-out fold losses, aligned with candidates.
metric
Source: src/fit/cross_validation.rs
Family-compatible metric used for validation.
minimum_index
Source: src/fit/cross_validation.rs
First candidate with minimum mean loss.
one_standard_error_index
Source: src/fit/cross_validation.rs
First candidate within one standard error of the minimum-loss point.
penalty
Source: src/fit/cross_validation.rs
Selected complete full-data penalty, including every strength and weight.
refit_path
Source: src/fit/cross_validation.rs
Fresh path fitted on all observations after validation and selection.
relative_strengths
Source: src/fit/cross_validation.rs
Shared automatic fractions of each fold's own starting anchor. Explicit paths have no inferred scalar representation.
selected_index
Source: src/fit/cross_validation.rs
Candidate chosen by the configured rule.
selection_rule
Source: src/fit/cross_validation.rs
Rule used to select the full-data fit.
standard_errors
Source: src/fit/cross_validation.rs
Sample standard deviations of fold losses divided by sqrt(K).
Implementation of Clone
Source: src/fit/cross_validation.rs
clone
Source: src/fit/cross_validation.rs
Implementation of Debug
Source: src/fit/cross_validation.rs
fmt
Source: src/fit/cross_validation.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
