Last active
June 3, 2022 07:59
-
-
Save alex-hse-repository/bfad4fdb242e759501b00f265b09b0c8 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
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