Skip to content

Commit

Permalink
fixed the docstring error that prevented unit test from passing
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastianwette committed Nov 29, 2023
1 parent 5b8a8dc commit 0a86151
Showing 1 changed file with 6 additions and 14 deletions.
20 changes: 6 additions & 14 deletions river/anomaly/pad.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,23 +76,15 @@ class PredictiveAnomalyDetection(anomaly.base.SupervisedAnomalyDetector):
... warmup_period=15
... )
>>> scores = []
>>> for t, (x, y) in enumerate(datasets.AirlinePassengers()):
... score = PAD.score_one(None, y)
... PAD.learn_one(None, y)
... print(score)
0.0
0.0
0.0
0.0
...
5.477831890312668e-05
0.07305562392710468
0.030122505497227493
0.04803795404401492
0.014216675596576562
0.04789677144570603
0.003410489566495498
... PAD = PAD.learn_one(None, y)
... scores.append(score)
>>> print(scores[-3:])
[0.014216675596576562, 0.04789677144570603, 0.003410489566495498]
References
----------
Expand Down

0 comments on commit 0a86151

Please sign in to comment.