Created
July 4, 2022 14:05
-
-
Save alex-hse-repository/d2073db9900ff3ffc3f456e73293e887 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
HORIZON = 62 | |
pipeline = Pipeline( | |
model=CatBoostModelPerSegment(), | |
transforms=[ | |
BinsegTrendTransform(in_column="target", n_bkps=2, min_size=150), | |
DateFlagsTransform(day_number_in_week=True, day_number_in_month=False, is_weekend=False), | |
], | |
horizon=HORIZON, | |
) | |
metrics, forecast, _ = pipeline.backtest(ts, metrics=[SMAPE()], n_folds=3) | |
plot_backtest(forecast, ts, history_len="all") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment