skfolio.model_selection.BaseCombinatorialCV#

class skfolio.model_selection.BaseCombinatorialCV[source]#

Base class for all combinatorial cross-validators.

Implementations must define split or get_path_ids.

Methods

get_path_ids()

Return the path id of each test sets in each split.

split(X[, y])

Generate indices to split data into training and test set.

abstractmethod get_path_ids()[source]#

Return the path id of each test sets in each split.

abstractmethod split(X, y=None)[source]#

Generate indices to split data into training and test set.

Parameters:
Xarray-like of shape (n_samples, n_features)

Training data, where n_samples is the number of samples and n_features is the number of features.

yarray-like of shape (n_samples,), optional

The (multi-)target variable.

Yields:
trainndarray

The training set indices for that split.

testlist[ndarray]

The testing set indices of each test group for that split.