|
| int | n_folds = 10 |
| | Number of folds for cross-validation (default: 10)
|
| |
| int | n_repeats = 1 |
| | Number of times to repeat the cross-validation (default: 1)
|
| |
| std::string | metric = "mse" |
| | Evaluation metric used for model assessment (default: "mse")
|
| |
| uint64_t | random_seed = 42 |
| | Seed for random number generator to ensure reproducibility (default: 42)
|
| |
| bool | copy_x = true |
| | Whether to copy the design matrix for each fold (default: true)
|
| |
| std::map< std::string, std::vector< double > > | hyperparams |
| | Map of hyperparameter names to vectors of values to evaluate.
|
| |
| std::map< std::string, std::vector< double > > | default_hyperparams |
| | Map of hyperparameter names to vectors of values to evaluate.
|
| |
| std::optional< std::vector< std::vector< std::vector< int > > > > | predefined_folds |
| | Optional user-defined fold assignments for custom cross-validation splits.
|
| |
Configuration settings for cross-validation.
This struct specifies the parameters used to control the cross-validation process, including fold count, evaluation metric, random seed, and hyperparameter grid.
Definition at line 89 of file cv.h.