Skip to content

Instantly share code, notes, and snippets.

@alex-hse-repository
Created June 1, 2022 05:44
Show Gist options
  • Save alex-hse-repository/8f3392f221c158dfb478da77e3634c9f to your computer and use it in GitHub Desktop.
Save alex-hse-repository/8f3392f221c158dfb478da77e3634c9f to your computer and use it in GitHub Desktop.
from etna.analysis import plot_anomalies, get_anomalies_density
ts = get_ts(["East_Midlands"])
anomalies = get_anomalies_density(ts, window_size=30, distance_coef=1, n_neighbors=9)
plot_anomalies(ts, anomalies)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment