ChangWeiTan / TS-Extrinsic-Regression

This repository contains the source code for time series regression.
GNU General Public License v3.0
93 stars 19 forks source link

Cannot load BeijingPM25Quality using aeon v0.5.0 #19

Open KevinArmbruster opened 9 months ago

KevinArmbruster commented 9 months ago

Hi, great toolbox so far. I just tried to load BeijingPM25Quality and I get the error: ValueError: could not convert string to float: '(2013-03-01 00'

If I state a download directory I can see the files are downloaded, but it seems parsing/reading them into X,y,metadata does not work. Greetings

ChangWeiTan commented 9 months ago

That is interesting. Do you mean you used aeon v0.5.0? Do you mind pasting some code here?

KevinArmbruster commented 9 months ago

I just followed the example and as I understood aeon 0.5.0 is the newest version.

` from aeon.datasets import load_regression

X, y, meta_data = load_regression("BeijingPM25Quality", extract_path="/path/to/data") print(" Shape of X = ", X.shape) print(" Shape of y = ", y.shape) print(" Meta data = ", meta_data) `

KevinArmbruster commented 9 months ago

I also tried parsing it myself, starting from pandas read_csv. It seems to me, that the file has inconsistent separators, as there is sometimes a colon ":" instead of a comma ",".

ChangWeiTan commented 9 months ago

Hi, unfortunately I think it is an issue with aeon. Please raise it with aeon and try using the dataloader I have. https://github.com/ChangWeiTan/TS-Extrinsic-Regression/blob/8c4771cf9a076a04fe2a1ed22bab48958de45b10/utils/data_loader.py#L36