
Perform 10-fold CV with refitting for one (family, property) combination
Source:R/train_cv.R
cv_train_property.RdDispatches to either VAE or Cubist+PCA training on each fold based on the family's algorithm.
Arguments
- X
Numeric matrix of preprocessed (SNV) spectra
- y
Numeric target vector
- family_id
Family identifier
- prop
Soil property name
- folds
List of integer test-index vectors (from
random_kfold()orstratified_kfold())- fam
Family list from
model_registry- ...
Extra args forwarded to per-fold trainers