You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have am getting this error unexpectedly. This data doesn't look to have any issues with it that would lead me to believe ETS would have issues.
Traceback (most recent call last):
File "/local_disk0/.ephemeral_nfs/cluster_libraries/python/lib/python3.10/site-packages/fugue_spark/execution_engine.py", line 228, in _udf_pandas
output_df = map_func(cursor, input_df)
File "/local_disk0/.ephemeral_nfs/cluster_libraries/python/lib/python3.10/site-packages/fugue/extensions/_builtins/processors.py", line 333, in run
return self.transformer.transform(df)
File "/local_disk0/.ephemeral_nfs/cluster_libraries/python/lib/python3.10/site-packages/fugue/extensions/transformer/convert.py", line 346, in transform
return self._wrapper.run(
File "/local_disk0/.ephemeral_nfs/cluster_libraries/python/lib/python3.10/site-packages/fugue/dataframe/function_wrapper.py", line 103, in run
rt = self._func(**rargs)
File "/local_disk0/.ephemeral_nfs/cluster_libraries/python/lib/python3.10/site-packages/statsforecast/distributed/fugue.py", line 139, in _forecast_noX
_, result = self._forecast(
File "/local_disk0/.ephemeral_nfs/cluster_libraries/python/lib/python3.10/site-packages/statsforecast/distributed/fugue.py", line 110, in _forecast
result = model.forecast(
File "/local_disk0/.ephemeral_nfs/cluster_libraries/python/lib/python3.10/site-packages/statsforecast/core.py", line 939, in forecast
res_fcsts = self.ga.forecast(
File "/local_disk0/.ephemeral_nfs/cluster_libraries/python/lib/python3.10/site-packages/statsforecast/core.py", line 204, in forecast
raise error
File "/local_disk0/.ephemeral_nfs/cluster_libraries/python/lib/python3.10/site-packages/statsforecast/core.py", line 204, in forecast
raise error
File "/local_disk0/.ephemeral_nfs/cluster_libraries/python/lib/python3.10/site-packages/statsforecast/models.py", line 799, in forecast
res = self._add_conformal_intervals(fcst=res, y=y, X=X, level=level)
File "/local_disk0/.ephemeral_nfs/cluster_libraries/python/lib/python3.10/site-packages/statsforecast/models.py", line 167, in _add_conformal_intervals
cs = self._conformity_scores(y, X) if y is not None else self._cs
File "/local_disk0/.ephemeral_nfs/cluster_libraries/python/lib/python3.10/site-packages/statsforecast/models.py", line 153, in _conformity_scores
fcst_window = self.forecast(h=h, y=y_train, X=X_train, X_future=X_test) # type: ignore[attr-defined]
File "/local_disk0/.ephemeral_nfs/cluster_libraries/python/lib/python3.10/site-packages/statsforecast/models.py", line 788, in forecast
mod = ets_f(
File "/local_disk0/.ephemeral_nfs/cluster_libraries/python/lib/python3.10/site-packages/statsforecast/ets.py", line 922, in ets_f
raise Exception("no model able to be fitted")
Exception: no model able to be fitted
Versions / Dependencies
Click to expand
Dependencies:
statsforecast==1.7.6 and greater
by removing the parameter prediction_intervals=ConformalIntervals(h=horizon, n_windows=9) entirely the model works as expected. Conformal intervals are required for my use case tho.
If I change the n_windows parameter in ConformalIntervals() from 9 to something less, it works. From my understanding, the training data needs to be at least h * n_windows + 2 rows long so this must be different for ETS models?
Hey. Seasonal models require at least 2 seasonal periods as history (24 samples in your case) and you're forcing it to be a seasonal model, which is most likely why it fails. Can you try setting the seasonal part as auto (model='AAZ')?
What happened + What you expected to happen
I have am getting this error unexpectedly. This data doesn't look to have any issues with it that would lead me to believe ETS would have issues.
Versions / Dependencies
Click to expand
Dependencies: statsforecast==1.7.6 and greaterReproducible example
Issue Severity
Medium: It is a significant difficulty but I can work around it.
The text was updated successfully, but these errors were encountered: