catboost - parameter tuning and model selection with k-fold cross-validation and grid search
Source:R/cv_catboost.R
cv_catboost.Rd
catboost - parameter tuning and model selection with k-fold cross-validation and grid search
Usage
cv_catboost(
x,
y,
params = cv_param_grid(),
n_folds = 5,
n_threads = 1,
seed = 42,
verbose = TRUE
)
Arguments
- x
Predictor matrix.
- y
Response vector.
- params
Parameter grid generated by
cv_param_grid()
.- n_folds
Number of folds. Default is 5.
- n_threads
The number of parallel threads. For optimal speed, match this to the number of physical CPU cores, not threads. See respective model documentation for more details. Default is 1.
- seed
Random seed for reproducibility.
- verbose
Show progress?