shrinkage::CrossValidationDatafit
Shrinkage for Rust · rust · 0.3.0
Source: src/cross_validation/metric.rs
A univariate datafit that can be rebuilt on a training-fold response.
Implementations preserve the family and intercept setting. They validate training responses before solver preparation and supply a compatible score.
Associated types
WithResponse
Source: src/cross_validation/metric.rs
type WithResponse<'a>: CrossValidationDatafit;Same family and settings borrowing a replacement response.
Methods
response
Source: src/cross_validation/metric.rs
Observed response in original row order.
supports_metric
Source: src/cross_validation/metric.rs
Whether this family supports the requested metric.
validate_training
Source: src/cross_validation/metric.rs
Validate a nonempty response, including degenerate training-fold policy.
Errors
Reject invalid responses or training folds without a finite null model.
validation_metric
Source: src/cross_validation/metric.rs
Default held-out metric for this family.
with_response
Source: src/cross_validation/metric.rs
Rebuild the family without retaining observations from other folds.
Implementation of CrossValidationDatafit
Source: src/cross_validation/metric.rs
Implementation of CrossValidationDatafit
Source: src/cross_validation/metric.rs
