Skip to content

[BUG] load_regression fails on BIDMC32HR #3086

@Cyril-Meyer

Description

@Cyril-Meyer

Describe the bug

load_regression fails when loading BIDMC32HR

This bug may be linked to #3073 and #3084.

Steps/Code to reproduce the bug

from aeon.datasets import load_regression

x, y = load_regression('BIDMC32HR')

Expected results

Work, no error.

Actual results

Traceback (most recent call last):
  File "C:\Users\cyril\Documents\Development\Template-4-TSC\test_aeon_bug.py", line 5, in <module>
    x, y = load_regression('BIDMC32HR')
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\cyril\Documents\Development\Template-4-TSC\venv\Lib\site-packages\aeon\datasets\_data_loaders.py", line 1219, in load_regression
    X, y, meta = _load_saved_dataset(
                 ^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\cyril\Documents\Development\Template-4-TSC\venv\Lib\site-packages\aeon\datasets\_data_loaders.py", line 364, in _load_saved_dataset
    X_train, y_train, meta_data = load_from_ts_file(abspath, return_meta_data=True)
                                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\cyril\Documents\Development\Template-4-TSC\venv\Lib\site-packages\aeon\datasets\_data_loaders.py", line 281, in load_from_ts_file
    data, y, meta_data = _load_data(file, meta_data)
                         ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\cyril\Documents\Development\Template-4-TSC\venv\Lib\site-packages\aeon\datasets\_data_loaders.py", line 193, in _load_data
    raise OSError(
OSError: Inconsistent number of dimensions in case 2133. Expecting 2 but have read 1

Process finished with exit code 1

Versions

machine: Windows-10-10.0.19045-SP0 Python dependencies: aeon: 1.3.0 pip: 24.0 setuptools: 65.5.0 scikit-learn: 1.5.2 numpy: 1.26.4 numba: 0.61.2 scipy: 1.15.3 pandas: 2.3.3

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions