split
openml.tasks.split
#
OpenMLSplit
#
OpenMLSplit(name: int | str, description: str, split: dict[int, dict[int, dict[int, tuple[ndarray, ndarray]]]])
OpenML Split object.
This class manages train-test splits for a dataset across multiple repetitions, folds, and samples.
Parameters#
name : int or str The name or ID of the split. description : str A description of the split. split : dict A dictionary containing the splits organized by repetition, fold, and sample.
Source code in openml/tasks/split.py
get
#
Returns the specified data split from the CrossValidationSplit object.
Parameters#
repeat : int Index of the repeat to retrieve. fold : int Index of the fold to retrieve. sample : int Index of the sample to retrieve.
Returns#
numpy.ndarray The data split for the specified repeat, fold, and sample.
Raises#
ValueError If the specified repeat, fold, or sample is not known.
Source code in openml/tasks/split.py
Split
#
Bases: NamedTuple
A single split of a dataset.