Update id for ETT datasets
Browse files
chronos_datasets_extra.py
CHANGED
@@ -106,7 +106,7 @@ def _ett_generator(name: str):
|
|
106 |
url = f"https://raw.githubusercontent.com/zhouhaoyi/ETDataset/main/ETT-small/{name}{region}.csv?download=1"
|
107 |
df = pd.read_csv(url, parse_dates=["date"])
|
108 |
df = df.rename(columns={"date": "timestamp"})
|
109 |
-
entry = {"id": name}
|
110 |
for col in df.columns:
|
111 |
entry[col] = df[col].to_numpy()
|
112 |
yield region, entry
|
|
|
106 |
url = f"https://raw.githubusercontent.com/zhouhaoyi/ETDataset/main/ETT-small/{name}{region}.csv?download=1"
|
107 |
df = pd.read_csv(url, parse_dates=["date"])
|
108 |
df = df.rename(columns={"date": "timestamp"})
|
109 |
+
entry = {"id": f"{name}{region}"}
|
110 |
for col in df.columns:
|
111 |
entry[col] = df[col].to_numpy()
|
112 |
yield region, entry
|