[ENH] Is there any interest in adding an error handling option within EnsembleForecaster?
#5729
Replies: 2 comments 5 replies
-
|
Very nice idea! I see two options that could be of use:
I would suggest though to start with the first option, it is less general and programmatic, but the 80 in the 80/20 here imo. |
Beta Was this translation helpful? Give feedback.
-
|
Another side note, @ninedigits, if you are already digging into This is a completely separate thinng though. Relevant issue and recipe is here: #5380 |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
In the
EnsembleForecaster, when an exception occurs, the code halts. This is often intentional, allowing for adjustments in preprocessing or model substitution. However, it becomes challenging in tasks where I forecast hundreds or thousands of time series. Specifically, tailoring a model to each individual time series is often impractical. Using the sameEnsembleForecaster(fit to each time series) not only reduces the risk of overfitting but also simplifies maintenance.Previously, I've handled this with a try-except block::
As a potential enhancement, I propose adding an error handling parameter to
EnsembleForecaster, such aserrors="ignore",errors="raise", orerrors="warn". This would enable the forecaster to continue producing forecasts even if one component fails, unless all or a specified number of models fail. Example:Would this feature be of interest to others? Happy to work on a PR to develop it if there's an interest in it.
Beta Was this translation helpful? Give feedback.
All reactions