-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
New detector: naive WIP #4
base: master
Are you sure you want to change the base?
Conversation
does random-walk forecasting, ie returns last seen value: P(t+1) = P(t)
thanks for the help @Japillow ! Improved doc,
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
trying to add a custom Naive predictor
-
as an excercise adding custom NAB detectors
-
Naive is a solid baseline for time-series predictions (but the Anomaly scores are not that good)
-
the scores are bad, I'm not sure if that's "correct" for this detector
-
still crashing on some inputs
FYI: @Japillow
""" | ||
This is implementation of the "naive forecast", aka "random walk forecasting", | ||
which is a baseline algorithm for time-series forecasting. | ||
It predicts the last seen value. So `Prediction(t+1) = Input(t)`. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Naive, random-walk is a simple predictor
|
||
# the computation | ||
x = abs(current - predicted)/predicted | ||
score = 1-math.exp(-self.coef * x) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is there a better way to get anomaly score from predictions?
This a) crashes sometimes, b) does not provide good AD
WIP
I'd like to add naive/random walk predictor (& detector).
Fixes numenta#343