-
Notifications
You must be signed in to change notification settings - Fork 880
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Examples/m4 competition #138
Conversation
…les/M4competion
…les/M4competion
…les/M4competion
…les/M4competion
darts/models/theta.py
Outdated
@@ -95,7 +95,7 @@ def fit(self, series: TimeSeries, component_index: Optional[int] = None): | |||
new_ts = remove_from_series(ts, self.seasonality, model=self.season_mode) | |||
|
|||
# SES part of the decomposition. | |||
self.model = hw.SimpleExpSmoothing(new_ts.values()).fit() | |||
self.model = hw.SimpleExpSmoothing(new_ts.values()).fit(initial_level=0.2) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we want to change this in this PR?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry, it was something that I forgot to clean.
Same for the comments after that
holt = ExponentialSmoothing(seasonal=None, damped=False, trend='additive', seasonal_periods=m) | ||
damp = ExponentialSmoothing(seasonal=None, damped=True, trend='additive', seasonal_periods=m) | ||
|
||
# season_mode = ["additive", "multiplicative"] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should this be here if it's commented out?
|
||
|
||
def train_4theta(ts, n): | ||
# season_mode = ["additive", "multiplicative"] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should this also be here?
examples/M4_competition/FourTheta.py
Outdated
return model_class(**best_param_combination) | ||
|
||
|
||
class FourTheta(UnivariateForecastingModel): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This class is already included in the previous PR and merged, right? Or is it some different implementation?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The difference is that it uses a modified version of gridsearch that do not create a TimeSeries.
Thus the execution time of the notebook drops from 1h to 5-10 minutes
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I know it is a pity that using TimeSeries increases the gridsearch time, but if we release this we cannot have a separate implementation, and we should really use the implementation in darts/models
, even if it takes much longer to run.
…les/M4competion
M4 competition Benchmark
Summary
Proposition for adding M4 competition benchmark to examples. Add scripts to download dataset, create the timeseries and reproduce the results. Add a notebook to put together the different parts and and visualize some results.