skfolio.model_selection.BaseCombinatorialCV#
- class skfolio.model_selection.BaseCombinatorialCV[source]#
Base class for all combinatorial cross-validators.
Implementations must define
splitorget_path_ids.Methods
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 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_samplesis the number of samples andn_featuresis 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.