aeon icon indicating copy to clipboard operation
aeon copied to clipboard

[ENH] Storage of TSC datasets when loading from a package using import

Open TonyBagnall opened this issue 2 months ago • 2 comments

Describe the feature or idea you want to propose

writing labs on machine learning using aeon for data loading.

from aeon.datasets import load_gunpoint, load_from_ts_file
X, y = load_gunpoint(split="train", return_type="numpy2D")
print(X.shape, y.shape)

I have only ever done it within aeon, and wondered where the actual ts file gets placed. Turns out it goes in the environment.

Image

I dont think it should go there!

Describe your proposed solution

all to do with

Image caused by this, which looks for the default path for aeon, which is in the env. Not sure whats best here Image

Describe alternatives you've considered, if relevant

No response

Additional context

No response

TonyBagnall avatar Oct 07 '25 14:10 TonyBagnall

Hi, I’d like to work on this enhancement.

From my understanding, the issue is that TSC datasets are currently being downloaded into the package directory inside the environment (e.g., site-packages/aeon/datasets), which is not ideal since package directories should be read-only.

I plan to update the default storage location to a user-writable data directory (e.g., via platformdirs), while still supporting custom paths through extract_path. I’ll also ensure backward compatibility and update the documentation.

Please let me know if this approach aligns with what you expect before I proceed.

satwiksps avatar Nov 13 '25 04:11 satwiksps

Feel free to make a PR. We can discuss where the best default is there, the code to create a dir should not change that much regardless of what is chosen.

MatthewMiddlehurst avatar Nov 13 '25 16:11 MatthewMiddlehurst