TheDatumOrg / TSB-UAD

An End-to-End Benchmark Suite for Univariate Time-Series Anomaly Detection
https://tsb-uad.readthedocs.io/en/latest/
MIT License
151 stars 52 forks source link

IndexError: index 1 is out of bounds for axis 1 with size 1 #3

Closed Manojar14 closed 5 months ago

Manojar14 commented 5 months ago

I am trying to apply series2graph (from TSB_UAD.models.series2graph import Series2Graph) to my data set. However, once I run the following code :

label = df[:max_length,1].astype(int)

Result is :

IndexError Traceback (most recent call last) Cell In[21], line 1 ----> 1 label = df[:max_length,1].astype(int)

IndexError: index 1 is out of bounds for axis 1 with size 1

When I apply the dataset uploaded to https://github.com/TheDatumOrg/TSB-UAD/tree/main/data/benchmark/ECG, no errors occur.

Please help me solve this issue.

Thanks in advance

Manojar14 commented 5 months ago

solved