autogluon.timeseries 1.1.1b20240517__tar.gz → 1.1.1b20240518__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-1.1.1b20240517 → autogluon.timeseries-1.1.1b20240518}/PKG-INFO +1 -1
- {autogluon.timeseries-1.1.1b20240517 → autogluon.timeseries-1.1.1b20240518}/src/autogluon/timeseries/models/chronos/model.py +16 -15
- {autogluon.timeseries-1.1.1b20240517 → autogluon.timeseries-1.1.1b20240518}/src/autogluon/timeseries/models/chronos/pipeline.py +1 -1
- {autogluon.timeseries-1.1.1b20240517 → autogluon.timeseries-1.1.1b20240518}/src/autogluon/timeseries/predictor.py +22 -3
- {autogluon.timeseries-1.1.1b20240517 → autogluon.timeseries-1.1.1b20240518}/src/autogluon/timeseries/version.py +1 -1
- {autogluon.timeseries-1.1.1b20240517 → autogluon.timeseries-1.1.1b20240518}/src/autogluon.timeseries.egg-info/PKG-INFO +1 -1
- {autogluon.timeseries-1.1.1b20240517 → autogluon.timeseries-1.1.1b20240518}/src/autogluon.timeseries.egg-info/requires.txt +3 -3
- {autogluon.timeseries-1.1.1b20240517 → autogluon.timeseries-1.1.1b20240518}/setup.cfg +0 -0
- {autogluon.timeseries-1.1.1b20240517 → autogluon.timeseries-1.1.1b20240518}/setup.py +0 -0
- {autogluon.timeseries-1.1.1b20240517 → autogluon.timeseries-1.1.1b20240518}/src/autogluon/timeseries/__init__.py +0 -0
- {autogluon.timeseries-1.1.1b20240517 → autogluon.timeseries-1.1.1b20240518}/src/autogluon/timeseries/configs/__init__.py +0 -0
- {autogluon.timeseries-1.1.1b20240517 → autogluon.timeseries-1.1.1b20240518}/src/autogluon/timeseries/configs/presets_configs.py +0 -0
- {autogluon.timeseries-1.1.1b20240517 → autogluon.timeseries-1.1.1b20240518}/src/autogluon/timeseries/dataset/__init__.py +0 -0
- {autogluon.timeseries-1.1.1b20240517 → autogluon.timeseries-1.1.1b20240518}/src/autogluon/timeseries/dataset/ts_dataframe.py +0 -0
- {autogluon.timeseries-1.1.1b20240517 → autogluon.timeseries-1.1.1b20240518}/src/autogluon/timeseries/evaluator.py +0 -0
- {autogluon.timeseries-1.1.1b20240517 → autogluon.timeseries-1.1.1b20240518}/src/autogluon/timeseries/learner.py +0 -0
- {autogluon.timeseries-1.1.1b20240517 → autogluon.timeseries-1.1.1b20240518}/src/autogluon/timeseries/metrics/__init__.py +0 -0
- {autogluon.timeseries-1.1.1b20240517 → autogluon.timeseries-1.1.1b20240518}/src/autogluon/timeseries/metrics/abstract.py +0 -0
- {autogluon.timeseries-1.1.1b20240517 → autogluon.timeseries-1.1.1b20240518}/src/autogluon/timeseries/metrics/point.py +0 -0
- {autogluon.timeseries-1.1.1b20240517 → autogluon.timeseries-1.1.1b20240518}/src/autogluon/timeseries/metrics/quantile.py +0 -0
- {autogluon.timeseries-1.1.1b20240517 → autogluon.timeseries-1.1.1b20240518}/src/autogluon/timeseries/metrics/utils.py +0 -0
- {autogluon.timeseries-1.1.1b20240517 → autogluon.timeseries-1.1.1b20240518}/src/autogluon/timeseries/models/__init__.py +0 -0
- {autogluon.timeseries-1.1.1b20240517 → autogluon.timeseries-1.1.1b20240518}/src/autogluon/timeseries/models/abstract/__init__.py +0 -0
- {autogluon.timeseries-1.1.1b20240517 → autogluon.timeseries-1.1.1b20240518}/src/autogluon/timeseries/models/abstract/abstract_timeseries_model.py +0 -0
- {autogluon.timeseries-1.1.1b20240517 → autogluon.timeseries-1.1.1b20240518}/src/autogluon/timeseries/models/abstract/model_trial.py +0 -0
- {autogluon.timeseries-1.1.1b20240517 → autogluon.timeseries-1.1.1b20240518}/src/autogluon/timeseries/models/autogluon_tabular/__init__.py +0 -0
- {autogluon.timeseries-1.1.1b20240517 → autogluon.timeseries-1.1.1b20240518}/src/autogluon/timeseries/models/autogluon_tabular/mlforecast.py +0 -0
- {autogluon.timeseries-1.1.1b20240517 → autogluon.timeseries-1.1.1b20240518}/src/autogluon/timeseries/models/autogluon_tabular/utils.py +0 -0
- {autogluon.timeseries-1.1.1b20240517 → autogluon.timeseries-1.1.1b20240518}/src/autogluon/timeseries/models/chronos/__init__.py +0 -0
- {autogluon.timeseries-1.1.1b20240517 → autogluon.timeseries-1.1.1b20240518}/src/autogluon/timeseries/models/chronos/utils.py +0 -0
- {autogluon.timeseries-1.1.1b20240517 → autogluon.timeseries-1.1.1b20240518}/src/autogluon/timeseries/models/ensemble/__init__.py +0 -0
- {autogluon.timeseries-1.1.1b20240517 → autogluon.timeseries-1.1.1b20240518}/src/autogluon/timeseries/models/ensemble/abstract_timeseries_ensemble.py +0 -0
- {autogluon.timeseries-1.1.1b20240517 → autogluon.timeseries-1.1.1b20240518}/src/autogluon/timeseries/models/ensemble/greedy_ensemble.py +0 -0
- {autogluon.timeseries-1.1.1b20240517 → autogluon.timeseries-1.1.1b20240518}/src/autogluon/timeseries/models/gluonts/__init__.py +0 -0
- {autogluon.timeseries-1.1.1b20240517 → autogluon.timeseries-1.1.1b20240518}/src/autogluon/timeseries/models/gluonts/abstract_gluonts.py +0 -0
- {autogluon.timeseries-1.1.1b20240517 → autogluon.timeseries-1.1.1b20240518}/src/autogluon/timeseries/models/gluonts/torch/__init__.py +0 -0
- {autogluon.timeseries-1.1.1b20240517 → autogluon.timeseries-1.1.1b20240518}/src/autogluon/timeseries/models/gluonts/torch/models.py +0 -0
- {autogluon.timeseries-1.1.1b20240517 → autogluon.timeseries-1.1.1b20240518}/src/autogluon/timeseries/models/local/__init__.py +0 -0
- {autogluon.timeseries-1.1.1b20240517 → autogluon.timeseries-1.1.1b20240518}/src/autogluon/timeseries/models/local/abstract_local_model.py +0 -0
- {autogluon.timeseries-1.1.1b20240517 → autogluon.timeseries-1.1.1b20240518}/src/autogluon/timeseries/models/local/naive.py +0 -0
- {autogluon.timeseries-1.1.1b20240517 → autogluon.timeseries-1.1.1b20240518}/src/autogluon/timeseries/models/local/npts.py +0 -0
- {autogluon.timeseries-1.1.1b20240517 → autogluon.timeseries-1.1.1b20240518}/src/autogluon/timeseries/models/local/statsforecast.py +0 -0
- {autogluon.timeseries-1.1.1b20240517 → autogluon.timeseries-1.1.1b20240518}/src/autogluon/timeseries/models/multi_window/__init__.py +0 -0
- {autogluon.timeseries-1.1.1b20240517 → autogluon.timeseries-1.1.1b20240518}/src/autogluon/timeseries/models/multi_window/multi_window_model.py +0 -0
- {autogluon.timeseries-1.1.1b20240517 → autogluon.timeseries-1.1.1b20240518}/src/autogluon/timeseries/models/presets.py +0 -0
- {autogluon.timeseries-1.1.1b20240517 → autogluon.timeseries-1.1.1b20240518}/src/autogluon/timeseries/splitter.py +0 -0
- {autogluon.timeseries-1.1.1b20240517 → autogluon.timeseries-1.1.1b20240518}/src/autogluon/timeseries/trainer/__init__.py +0 -0
- {autogluon.timeseries-1.1.1b20240517 → autogluon.timeseries-1.1.1b20240518}/src/autogluon/timeseries/trainer/abstract_trainer.py +0 -0
- {autogluon.timeseries-1.1.1b20240517 → autogluon.timeseries-1.1.1b20240518}/src/autogluon/timeseries/trainer/auto_trainer.py +0 -0
- {autogluon.timeseries-1.1.1b20240517 → autogluon.timeseries-1.1.1b20240518}/src/autogluon/timeseries/utils/__init__.py +0 -0
- {autogluon.timeseries-1.1.1b20240517 → autogluon.timeseries-1.1.1b20240518}/src/autogluon/timeseries/utils/datetime/__init__.py +0 -0
- {autogluon.timeseries-1.1.1b20240517 → autogluon.timeseries-1.1.1b20240518}/src/autogluon/timeseries/utils/datetime/base.py +0 -0
- {autogluon.timeseries-1.1.1b20240517 → autogluon.timeseries-1.1.1b20240518}/src/autogluon/timeseries/utils/datetime/lags.py +0 -0
- {autogluon.timeseries-1.1.1b20240517 → autogluon.timeseries-1.1.1b20240518}/src/autogluon/timeseries/utils/datetime/seasonality.py +0 -0
- {autogluon.timeseries-1.1.1b20240517 → autogluon.timeseries-1.1.1b20240518}/src/autogluon/timeseries/utils/datetime/time_features.py +0 -0
- {autogluon.timeseries-1.1.1b20240517 → autogluon.timeseries-1.1.1b20240518}/src/autogluon/timeseries/utils/features.py +0 -0
- {autogluon.timeseries-1.1.1b20240517 → autogluon.timeseries-1.1.1b20240518}/src/autogluon/timeseries/utils/forecast.py +0 -0
- {autogluon.timeseries-1.1.1b20240517 → autogluon.timeseries-1.1.1b20240518}/src/autogluon/timeseries/utils/warning_filters.py +0 -0
- {autogluon.timeseries-1.1.1b20240517 → autogluon.timeseries-1.1.1b20240518}/src/autogluon.timeseries.egg-info/SOURCES.txt +0 -0
- {autogluon.timeseries-1.1.1b20240517 → autogluon.timeseries-1.1.1b20240518}/src/autogluon.timeseries.egg-info/dependency_links.txt +0 -0
- {autogluon.timeseries-1.1.1b20240517 → autogluon.timeseries-1.1.1b20240518}/src/autogluon.timeseries.egg-info/namespace_packages.txt +0 -0
- {autogluon.timeseries-1.1.1b20240517 → autogluon.timeseries-1.1.1b20240518}/src/autogluon.timeseries.egg-info/top_level.txt +0 -0
- {autogluon.timeseries-1.1.1b20240517 → autogluon.timeseries-1.1.1b20240518}/src/autogluon.timeseries.egg-info/zip-safe +0 -0
|
@@ -16,27 +16,27 @@ logger = logging.getLogger(__name__)
|
|
|
16
16
|
|
|
17
17
|
# allowed HuggingFace model paths with custom parameter definitions
|
|
18
18
|
MODEL_CONFIGS = {
|
|
19
|
-
"
|
|
19
|
+
"chronos-t5-tiny": {
|
|
20
20
|
"num_gpus": 0, # minimum number of required GPUs
|
|
21
21
|
"default_torch_dtype": "auto",
|
|
22
22
|
"default_batch_size": 16,
|
|
23
23
|
},
|
|
24
|
-
"
|
|
24
|
+
"chronos-t5-mini": {
|
|
25
25
|
"num_gpus": 0,
|
|
26
26
|
"default_torch_dtype": "auto",
|
|
27
27
|
"default_batch_size": 16,
|
|
28
28
|
},
|
|
29
|
-
"
|
|
29
|
+
"chronos-t5-small": {
|
|
30
30
|
"num_gpus": 1,
|
|
31
31
|
"default_torch_dtype": "bfloat16",
|
|
32
32
|
"default_batch_size": 16,
|
|
33
33
|
},
|
|
34
|
-
"
|
|
34
|
+
"chronos-t5-base": {
|
|
35
35
|
"num_gpus": 1,
|
|
36
36
|
"default_torch_dtype": "bfloat16",
|
|
37
37
|
"default_batch_size": 16,
|
|
38
38
|
},
|
|
39
|
-
"
|
|
39
|
+
"chronos-t5-large": {
|
|
40
40
|
"num_gpus": 1,
|
|
41
41
|
"default_torch_dtype": "bfloat16",
|
|
42
42
|
"default_batch_size": 8,
|
|
@@ -45,11 +45,11 @@ MODEL_CONFIGS = {
|
|
|
45
45
|
|
|
46
46
|
|
|
47
47
|
MODEL_ALIASES = {
|
|
48
|
-
"tiny": "
|
|
49
|
-
"mini": "
|
|
50
|
-
"small": "
|
|
51
|
-
"base": "
|
|
52
|
-
"large": "
|
|
48
|
+
"tiny": "autogluon/chronos-t5-tiny",
|
|
49
|
+
"mini": "autogluon/chronos-t5-mini",
|
|
50
|
+
"small": "autogluon/chronos-t5-small",
|
|
51
|
+
"base": "autogluon/chronos-t5-base",
|
|
52
|
+
"large": "autogluon/chronos-t5-large",
|
|
53
53
|
}
|
|
54
54
|
|
|
55
55
|
|
|
@@ -75,10 +75,10 @@ class ChronosModel(AbstractTimeSeriesModel):
|
|
|
75
75
|
|
|
76
76
|
Other Parameters
|
|
77
77
|
----------------
|
|
78
|
-
model_path: str, default = "
|
|
78
|
+
model_path: str, default = "autogluon/chronos-t5-small"
|
|
79
79
|
Model path used for the model, i.e., a HuggingFace transformers ``name_or_path``. Can be a
|
|
80
80
|
compatible model name on HuggingFace Hub or a local path to a model directory. Original
|
|
81
|
-
Chronos models (i.e., ``
|
|
81
|
+
Chronos models (i.e., ``autogluon/chronos-t5-{model_size}``) can be specified with aliases
|
|
82
82
|
``tiny``, ``mini`` , ``small``, ``base``, and ``large``.
|
|
83
83
|
batch_size : int, default = 16
|
|
84
84
|
Size of batches used during inference
|
|
@@ -106,7 +106,7 @@ class ChronosModel(AbstractTimeSeriesModel):
|
|
|
106
106
|
|
|
107
107
|
# default number of samples for prediction
|
|
108
108
|
default_num_samples: int = 20
|
|
109
|
-
default_model_path = "
|
|
109
|
+
default_model_path = "autogluon/chronos-t5-small"
|
|
110
110
|
maximum_context_length = 512
|
|
111
111
|
|
|
112
112
|
def __init__(
|
|
@@ -185,9 +185,10 @@ class ChronosModel(AbstractTimeSeriesModel):
|
|
|
185
185
|
@property
|
|
186
186
|
def ag_default_config(self) -> Dict[str, Any]:
|
|
187
187
|
"""The default configuration of the model used by AutoGluon if the model is one of those
|
|
188
|
-
defined in MODEL_CONFIGS. For now, these are ``
|
|
188
|
+
defined in MODEL_CONFIGS. For now, these are ``autogluon/chronos-t5-*`` family of models.
|
|
189
189
|
"""
|
|
190
|
-
|
|
190
|
+
model_name = str(self.model_path).split("/")[-1]
|
|
191
|
+
return MODEL_CONFIGS.get(model_name, {})
|
|
191
192
|
|
|
192
193
|
@property
|
|
193
194
|
def min_num_gpus(self) -> int:
|
|
@@ -163,7 +163,7 @@ class MeanScaleUniformBins(ChronosTokenizer):
|
|
|
163
163
|
def output_transform(self, samples: torch.Tensor, scale: torch.Tensor) -> torch.Tensor:
|
|
164
164
|
scale_unsqueezed = scale.unsqueeze(-1).unsqueeze(-1)
|
|
165
165
|
indices = torch.clamp(
|
|
166
|
-
samples - self.config.n_special_tokens,
|
|
166
|
+
samples - self.config.n_special_tokens - 1,
|
|
167
167
|
min=0,
|
|
168
168
|
max=len(self.centers) - 1,
|
|
169
169
|
)
|
|
@@ -146,7 +146,7 @@ class TimeSeriesPredictor(TimeSeriesPredictorDeprecatedMixin):
|
|
|
146
146
|
"""
|
|
147
147
|
|
|
148
148
|
predictor_file_name = "predictor.pkl"
|
|
149
|
-
_predictor_version_file_name = "
|
|
149
|
+
_predictor_version_file_name = "version.txt"
|
|
150
150
|
_predictor_log_file_name = "predictor_log.txt"
|
|
151
151
|
|
|
152
152
|
def __init__(
|
|
@@ -1041,8 +1041,27 @@ class TimeSeriesPredictor(TimeSeriesPredictorDeprecatedMixin):
|
|
|
1041
1041
|
|
|
1042
1042
|
@classmethod
|
|
1043
1043
|
def _load_version_file(cls, path: str) -> str:
|
|
1044
|
+
"""
|
|
1045
|
+
Loads the version file that is part of the saved predictor artifact.
|
|
1046
|
+
|
|
1047
|
+
Parameters
|
|
1048
|
+
----------
|
|
1049
|
+
path: str
|
|
1050
|
+
The path that would be used to load the predictor via `predictor.load(path)`
|
|
1051
|
+
|
|
1052
|
+
Returns
|
|
1053
|
+
-------
|
|
1054
|
+
The version of AutoGluon used to fit the predictor, as a string.
|
|
1055
|
+
|
|
1056
|
+
"""
|
|
1044
1057
|
version_file_path = os.path.join(path, cls._predictor_version_file_name)
|
|
1045
|
-
|
|
1058
|
+
try:
|
|
1059
|
+
version = load_str.load(path=version_file_path)
|
|
1060
|
+
except:
|
|
1061
|
+
# Loads the old version file used in `autogluon.timeseries<=1.1.0`, named `__version__`.
|
|
1062
|
+
# This file name was changed because Kaggle does not allow uploading files named `__version__`.
|
|
1063
|
+
version_file_path = os.path.join(path, "__version__")
|
|
1064
|
+
version = load_str.load(path=version_file_path)
|
|
1046
1065
|
return version
|
|
1047
1066
|
|
|
1048
1067
|
@classmethod
|
|
@@ -1077,7 +1096,7 @@ class TimeSeriesPredictor(TimeSeriesPredictorDeprecatedMixin):
|
|
|
1077
1096
|
except:
|
|
1078
1097
|
logger.warning(
|
|
1079
1098
|
f'WARNING: Could not find version file at "{os.path.join(path, cls._predictor_version_file_name)}".\n'
|
|
1080
|
-
f"This means that the predictor was fit in
|
|
1099
|
+
f"This means that the predictor was fit in an AutoGluon version `<=0.7.0`."
|
|
1081
1100
|
)
|
|
1082
1101
|
version_saved = "Unknown (Likely <=0.7.0)"
|
|
1083
1102
|
|
|
@@ -15,9 +15,9 @@ utilsforecast<0.0.11,>=0.0.10
|
|
|
15
15
|
tqdm<5,>=4.38
|
|
16
16
|
orjson~=3.9
|
|
17
17
|
tensorboard<3,>=2.9
|
|
18
|
-
autogluon.core[raytune]==1.1.
|
|
19
|
-
autogluon.common==1.1.
|
|
20
|
-
autogluon.tabular[catboost,lightgbm,xgboost]==1.1.
|
|
18
|
+
autogluon.core[raytune]==1.1.1b20240518
|
|
19
|
+
autogluon.common==1.1.1b20240518
|
|
20
|
+
autogluon.tabular[catboost,lightgbm,xgboost]==1.1.1b20240518
|
|
21
21
|
|
|
22
22
|
[all]
|
|
23
23
|
optimum[onnxruntime]<1.19,>=1.17
|
|
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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|