Skip to contents

Dispatches to either VAE or Cubist+PCA training on each fold based on the family's algorithm.

Usage

cv_train_property(X, y, family_id, prop, folds, fam, ...)

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() or stratified_kfold())

fam

Family list from model_registry

...

Extra args forwarded to per-fold trainers

Value

List with per-fold metrics and aggregated mean/SD