autogluon.timeseries 0.7.0b20230302__tar.gz → 0.7.0b20230303__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of autogluon.timeseries might be problematic. Click here for more details.
- {autogluon.timeseries-0.7.0b20230302 → autogluon.timeseries-0.7.0b20230303}/PKG-INFO +1 -1
- {autogluon.timeseries-0.7.0b20230302 → autogluon.timeseries-0.7.0b20230303}/src/autogluon/timeseries/dataset/ts_dataframe.py +16 -10
- {autogluon.timeseries-0.7.0b20230302 → autogluon.timeseries-0.7.0b20230303}/src/autogluon/timeseries/version.py +1 -1
- {autogluon.timeseries-0.7.0b20230302 → autogluon.timeseries-0.7.0b20230303}/src/autogluon.timeseries.egg-info/PKG-INFO +1 -1
- {autogluon.timeseries-0.7.0b20230302 → autogluon.timeseries-0.7.0b20230303}/src/autogluon.timeseries.egg-info/requires.txt +4 -4
- {autogluon.timeseries-0.7.0b20230302 → autogluon.timeseries-0.7.0b20230303}/setup.cfg +0 -0
- {autogluon.timeseries-0.7.0b20230302 → autogluon.timeseries-0.7.0b20230303}/setup.py +0 -0
- {autogluon.timeseries-0.7.0b20230302 → autogluon.timeseries-0.7.0b20230303}/src/autogluon/__init__.py +0 -0
- {autogluon.timeseries-0.7.0b20230302 → autogluon.timeseries-0.7.0b20230303}/src/autogluon/timeseries/__init__.py +0 -0
- {autogluon.timeseries-0.7.0b20230302 → autogluon.timeseries-0.7.0b20230303}/src/autogluon/timeseries/configs/__init__.py +0 -0
- {autogluon.timeseries-0.7.0b20230302 → autogluon.timeseries-0.7.0b20230303}/src/autogluon/timeseries/configs/presets_configs.py +0 -0
- {autogluon.timeseries-0.7.0b20230302 → autogluon.timeseries-0.7.0b20230303}/src/autogluon/timeseries/dataset/__init__.py +0 -0
- {autogluon.timeseries-0.7.0b20230302 → autogluon.timeseries-0.7.0b20230303}/src/autogluon/timeseries/evaluator.py +0 -0
- {autogluon.timeseries-0.7.0b20230302 → autogluon.timeseries-0.7.0b20230303}/src/autogluon/timeseries/learner.py +0 -0
- {autogluon.timeseries-0.7.0b20230302 → autogluon.timeseries-0.7.0b20230303}/src/autogluon/timeseries/models/__init__.py +0 -0
- {autogluon.timeseries-0.7.0b20230302 → autogluon.timeseries-0.7.0b20230303}/src/autogluon/timeseries/models/abstract/__init__.py +0 -0
- {autogluon.timeseries-0.7.0b20230302 → autogluon.timeseries-0.7.0b20230303}/src/autogluon/timeseries/models/abstract/abstract_timeseries_model.py +0 -0
- {autogluon.timeseries-0.7.0b20230302 → autogluon.timeseries-0.7.0b20230303}/src/autogluon/timeseries/models/abstract/model_trial.py +0 -0
- {autogluon.timeseries-0.7.0b20230302 → autogluon.timeseries-0.7.0b20230303}/src/autogluon/timeseries/models/autogluon_tabular/__init__.py +0 -0
- {autogluon.timeseries-0.7.0b20230302 → autogluon.timeseries-0.7.0b20230303}/src/autogluon/timeseries/models/autogluon_tabular/tabular_model.py +0 -0
- {autogluon.timeseries-0.7.0b20230302 → autogluon.timeseries-0.7.0b20230303}/src/autogluon/timeseries/models/ensemble/__init__.py +0 -0
- {autogluon.timeseries-0.7.0b20230302 → autogluon.timeseries-0.7.0b20230303}/src/autogluon/timeseries/models/ensemble/abstract_timeseries_ensemble.py +0 -0
- {autogluon.timeseries-0.7.0b20230302 → autogluon.timeseries-0.7.0b20230303}/src/autogluon/timeseries/models/ensemble/greedy_ensemble.py +0 -0
- {autogluon.timeseries-0.7.0b20230302 → autogluon.timeseries-0.7.0b20230303}/src/autogluon/timeseries/models/gluonts/__init__.py +0 -0
- {autogluon.timeseries-0.7.0b20230302 → autogluon.timeseries-0.7.0b20230303}/src/autogluon/timeseries/models/gluonts/abstract_gluonts.py +0 -0
- {autogluon.timeseries-0.7.0b20230302 → autogluon.timeseries-0.7.0b20230303}/src/autogluon/timeseries/models/gluonts/mx/__init__.py +0 -0
- {autogluon.timeseries-0.7.0b20230302 → autogluon.timeseries-0.7.0b20230303}/src/autogluon/timeseries/models/gluonts/mx/callback.py +0 -0
- {autogluon.timeseries-0.7.0b20230302 → autogluon.timeseries-0.7.0b20230303}/src/autogluon/timeseries/models/gluonts/mx/models.py +0 -0
- {autogluon.timeseries-0.7.0b20230302 → autogluon.timeseries-0.7.0b20230303}/src/autogluon/timeseries/models/gluonts/torch/__init__.py +0 -0
- {autogluon.timeseries-0.7.0b20230302 → autogluon.timeseries-0.7.0b20230303}/src/autogluon/timeseries/models/gluonts/torch/models.py +0 -0
- {autogluon.timeseries-0.7.0b20230302 → autogluon.timeseries-0.7.0b20230303}/src/autogluon/timeseries/models/local/__init__.py +0 -0
- {autogluon.timeseries-0.7.0b20230302 → autogluon.timeseries-0.7.0b20230303}/src/autogluon/timeseries/models/local/abstract_local_model.py +0 -0
- {autogluon.timeseries-0.7.0b20230302 → autogluon.timeseries-0.7.0b20230303}/src/autogluon/timeseries/models/local/naive.py +0 -0
- {autogluon.timeseries-0.7.0b20230302 → autogluon.timeseries-0.7.0b20230303}/src/autogluon/timeseries/models/local/statsforecast.py +0 -0
- {autogluon.timeseries-0.7.0b20230302 → autogluon.timeseries-0.7.0b20230303}/src/autogluon/timeseries/models/local/statsmodels.py +0 -0
- {autogluon.timeseries-0.7.0b20230302 → autogluon.timeseries-0.7.0b20230303}/src/autogluon/timeseries/models/presets.py +0 -0
- {autogluon.timeseries-0.7.0b20230302 → autogluon.timeseries-0.7.0b20230303}/src/autogluon/timeseries/models/sktime/__init__.py +0 -0
- {autogluon.timeseries-0.7.0b20230302 → autogluon.timeseries-0.7.0b20230303}/src/autogluon/timeseries/models/sktime/abstract_sktime.py +0 -0
- {autogluon.timeseries-0.7.0b20230302 → autogluon.timeseries-0.7.0b20230303}/src/autogluon/timeseries/models/sktime/models.py +0 -0
- {autogluon.timeseries-0.7.0b20230302 → autogluon.timeseries-0.7.0b20230303}/src/autogluon/timeseries/predictor.py +0 -0
- {autogluon.timeseries-0.7.0b20230302 → autogluon.timeseries-0.7.0b20230303}/src/autogluon/timeseries/splitter.py +0 -0
- {autogluon.timeseries-0.7.0b20230302 → autogluon.timeseries-0.7.0b20230303}/src/autogluon/timeseries/trainer/__init__.py +0 -0
- {autogluon.timeseries-0.7.0b20230302 → autogluon.timeseries-0.7.0b20230303}/src/autogluon/timeseries/trainer/abstract_trainer.py +0 -0
- {autogluon.timeseries-0.7.0b20230302 → autogluon.timeseries-0.7.0b20230303}/src/autogluon/timeseries/trainer/auto_trainer.py +0 -0
- {autogluon.timeseries-0.7.0b20230302 → autogluon.timeseries-0.7.0b20230303}/src/autogluon/timeseries/utils/__init__.py +0 -0
- {autogluon.timeseries-0.7.0b20230302 → autogluon.timeseries-0.7.0b20230303}/src/autogluon/timeseries/utils/features.py +0 -0
- {autogluon.timeseries-0.7.0b20230302 → autogluon.timeseries-0.7.0b20230303}/src/autogluon/timeseries/utils/forecast.py +0 -0
- {autogluon.timeseries-0.7.0b20230302 → autogluon.timeseries-0.7.0b20230303}/src/autogluon/timeseries/utils/hashing.py +0 -0
- {autogluon.timeseries-0.7.0b20230302 → autogluon.timeseries-0.7.0b20230303}/src/autogluon/timeseries/utils/random.py +0 -0
- {autogluon.timeseries-0.7.0b20230302 → autogluon.timeseries-0.7.0b20230303}/src/autogluon/timeseries/utils/seasonality.py +0 -0
- {autogluon.timeseries-0.7.0b20230302 → autogluon.timeseries-0.7.0b20230303}/src/autogluon/timeseries/utils/warning_filters.py +0 -0
- {autogluon.timeseries-0.7.0b20230302 → autogluon.timeseries-0.7.0b20230303}/src/autogluon.timeseries.egg-info/SOURCES.txt +0 -0
- {autogluon.timeseries-0.7.0b20230302 → autogluon.timeseries-0.7.0b20230303}/src/autogluon.timeseries.egg-info/dependency_links.txt +0 -0
- {autogluon.timeseries-0.7.0b20230302 → autogluon.timeseries-0.7.0b20230303}/src/autogluon.timeseries.egg-info/namespace_packages.txt +0 -0
- {autogluon.timeseries-0.7.0b20230302 → autogluon.timeseries-0.7.0b20230303}/src/autogluon.timeseries.egg-info/top_level.txt +0 -0
- {autogluon.timeseries-0.7.0b20230302 → autogluon.timeseries-0.7.0b20230303}/src/autogluon.timeseries.egg-info/zip-safe +0 -0
|
@@ -8,6 +8,7 @@ from typing import Any, Optional, Tuple, Type
|
|
|
8
8
|
|
|
9
9
|
import numpy as np
|
|
10
10
|
import pandas as pd
|
|
11
|
+
from joblib.parallel import Parallel, delayed
|
|
11
12
|
from pandas.core.internals import ArrayManager, BlockManager
|
|
12
13
|
|
|
13
14
|
from autogluon.common.loaders import load_pd
|
|
@@ -258,24 +259,27 @@ class TimeSeriesDataFrame(pd.DataFrame):
|
|
|
258
259
|
raise ValueError(f"all entries in index `{ITEMID}` must be of integer or string dtype")
|
|
259
260
|
|
|
260
261
|
@classmethod
|
|
261
|
-
def _construct_pandas_frame_from_iterable_dataset(
|
|
262
|
-
cls
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
for i, ts in enumerate(iterable_dataset):
|
|
262
|
+
def _construct_pandas_frame_from_iterable_dataset(
|
|
263
|
+
cls, iterable_dataset: Iterable, num_cpus: int = -1
|
|
264
|
+
) -> pd.DataFrame:
|
|
265
|
+
def load_single_item(item_id: int, ts: dict) -> pd.DataFrame:
|
|
266
266
|
start_timestamp = ts["start"]
|
|
267
267
|
freq = start_timestamp.freq
|
|
268
268
|
if isinstance(start_timestamp, pd.Period):
|
|
269
269
|
start_timestamp = start_timestamp.to_timestamp(how="S")
|
|
270
270
|
target = ts["target"]
|
|
271
271
|
datetime_index = tuple(pd.date_range(start_timestamp, periods=len(target), freq=freq))
|
|
272
|
-
idx = pd.MultiIndex.from_product([(
|
|
273
|
-
|
|
274
|
-
|
|
272
|
+
idx = pd.MultiIndex.from_product([(item_id,), datetime_index], names=[ITEMID, TIMESTAMP])
|
|
273
|
+
return pd.Series(target, name="target", index=idx).to_frame()
|
|
274
|
+
|
|
275
|
+
cls._validate_iterable(iterable_dataset)
|
|
276
|
+
all_ts = Parallel(n_jobs=num_cpus)(
|
|
277
|
+
delayed(load_single_item)(item_id, ts) for item_id, ts in enumerate(iterable_dataset)
|
|
278
|
+
)
|
|
275
279
|
return pd.concat(all_ts)
|
|
276
280
|
|
|
277
281
|
@classmethod
|
|
278
|
-
def from_iterable_dataset(cls, iterable_dataset: Iterable) -> pd.DataFrame:
|
|
282
|
+
def from_iterable_dataset(cls, iterable_dataset: Iterable, num_cpus: int = -1) -> pd.DataFrame:
|
|
279
283
|
"""Construct a ``TimeSeriesDataFrame`` from an Iterable of dictionaries each of which
|
|
280
284
|
represent a single time series.
|
|
281
285
|
|
|
@@ -294,13 +298,15 @@ class TimeSeriesDataFrame(pd.DataFrame):
|
|
|
294
298
|
{"target": [3, 4, 5], "start": pd.Timestamp("01-01-2019", freq='D')},
|
|
295
299
|
{"target": [6, 7, 8], "start": pd.Timestamp("01-01-2019", freq='D')}
|
|
296
300
|
]
|
|
301
|
+
num_cpus : int, default = -1
|
|
302
|
+
Number of CPU cores used to process the iterable dataset in parallel. Set to -1 to use all cores.
|
|
297
303
|
|
|
298
304
|
Returns
|
|
299
305
|
-------
|
|
300
306
|
ts_df: TimeSeriesDataFrame
|
|
301
307
|
A data frame in TimeSeriesDataFrame format.
|
|
302
308
|
"""
|
|
303
|
-
return cls(cls._construct_pandas_frame_from_iterable_dataset(iterable_dataset))
|
|
309
|
+
return cls(cls._construct_pandas_frame_from_iterable_dataset(iterable_dataset, num_cpus=num_cpus))
|
|
304
310
|
|
|
305
311
|
@classmethod
|
|
306
312
|
def _load_data_frame_from_file(cls, path: str) -> pd.DataFrame:
|
|
@@ -10,13 +10,13 @@ networkx<3.0,>=2.3
|
|
|
10
10
|
statsforecast<1.5,>=1.4.0
|
|
11
11
|
tqdm<5,>=4.38
|
|
12
12
|
ujson<6,>=5
|
|
13
|
-
autogluon.core[raytune]==0.7.
|
|
14
|
-
autogluon.common==0.7.
|
|
15
|
-
autogluon.tabular[catboost,lightgbm,xgboost]==0.7.
|
|
13
|
+
autogluon.core[raytune]==0.7.0b20230303
|
|
14
|
+
autogluon.common==0.7.0b20230303
|
|
15
|
+
autogluon.tabular[catboost,lightgbm,xgboost]==0.7.0b20230303
|
|
16
16
|
|
|
17
17
|
[all]
|
|
18
|
-
tbats<2,>=1.1
|
|
19
18
|
sktime<0.16,>=0.14
|
|
19
|
+
tbats<2,>=1.1
|
|
20
20
|
pmdarima<1.9,>=1.8.2
|
|
21
21
|
|
|
22
22
|
[sktime]
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|