catboost.cv {catboost}R Documentation

Cross-validate model.

Description

Estimate model performance using cross-validation.

Usage

catboost.cv(
  pool,
  params = list(),
  fold_count = 3,
  type = "Classical",
  partition_random_seed = 0,
  shuffle = TRUE,
  stratified = FALSE,
  early_stopping_rounds = NULL
)

Arguments

pool

Data to cross-validate on

params

Parameters for catboost.train

fold_count

Folds count.

type

is type of cross-validation.

partition_random_seed

The random seed used for splitting pool into folds.

shuffle

Shuffle the dataset objects before splitting into folds.

stratified

Perform stratified sampling.

early_stopping_rounds

Activates Iter overfitting detector with od_wait set to early_stopping_rounds.

Value

A data.frame of evaluation results from cross-validation.


[Package catboost version 0.25 Index]