Skip to content

Instantly share code, notes, and snippets.

@alex-hse-repository
Last active June 3, 2022 07:59
Show Gist options
  • Save alex-hse-repository/bfad4fdb242e759501b00f265b09b0c8 to your computer and use it in GitHub Desktop.
Save alex-hse-repository/bfad4fdb242e759501b00f265b09b0c8 to your computer and use it in GitHub Desktop.
from etna.analysis import plot_trend
from etna.transforms import LinearTrendTransform, BinsegTrendTransform
ts = get_ts(["List_of_country"])
ts.fit_transform([TimeSeriesImputerTransform(in_column="target", strategy="running_mean", window=3)])
plot_trend(
ts=ts,
trend_transform=[
LinearTrendTransform(in_column="target"),
BinsegTrendTransform(in_column="target", n_bkps=2, min_size=150),
],
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment