tabensemb.data.AbstractSplitter._sklearn_k_fold#
method
- AbstractSplitter._sklearn_k_fold(data, cv) Tuple[ndarray, ndarray, ndarray][source]#
Generate a
sklearn.model_selection.KFoldinstance and return its__next__()result.- Parameters:
- data
An Iterable whose index will be split by KFold.
- cv
The total number of cross-validation runs.
- Returns:
- np.ndarray
Indices of the training, validation, and testing datasets of the current fold.
Notes
The returned values are fold indices of the input
dataargument, but not the fold.