Expand description
Cross-validation utilities and unified CV framework.
This module provides:
- Shared fold assignment utilities used across all CV functions
cv_fdata: Generic k-fold + repeated CV framework (R’scv.fdata)
Structs§
- CvFdata
Result - Result of unified cross-validation.
Enums§
Functions§
- create_
folds - Assign observations to folds (deterministic given seed).
- create_
stratified_ folds - Assign observations to stratified folds (classification).
- cv_
fdata - Generic k-fold + repeated cross-validation framework (R’s
cv.fdata). - fold_
indices - Split indices into train and test sets for a given fold.
- subset_
rows - Extract a sub-matrix from an FdMatrix by selecting specific row indices.
- subset_
vec - Extract elements from a slice by indices.