Skip to content

Instantly share code, notes, and snippets.

@alex-hse-repository
Created July 4, 2022 14:02
Show Gist options
  • Save alex-hse-repository/8f0a62f454131c74ed9e5f4a4f6723c2 to your computer and use it in GitHub Desktop.
Save alex-hse-repository/8f0a62f454131c74ed9e5f4a4f6723c2 to your computer and use it in GitHub Desktop.
pipeline = Pipeline(
model=CatBoostModelPerSegment(),
transforms=[
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