load_experiment_data¶
- tsml_eval.utils.datasets.load_experiment_data(problem_path: str, dataset: str, resample_id: int, predefined_resample: bool)[source]¶
Load data for experiments.
- Parameters:
- problem_pathstr
Path to the problem folder.
- datasetstr
Name of the dataset.
- resample_idint or None
Id of the data resample to use.
- predefined_resampleboolean
If True, use the predefined resample.
- Returns:
- X_trainnp.ndarray or list of np.ndarray
Train data in a 2d or 3d ndarray or list of arrays.
- y_trainnp.ndarray
Train data labels.
- X_testnp.ndarray or list of np.ndarray
Test data in a 2d or 3d ndarray or list of arrays.
- y_testnp.ndarray
Test data labels.
- resampleboolean
If True, the data is to be resampled.