Skip to content

Commit

Permalink
Merge pull request #37 from earthgecko/patch-1
Browse files Browse the repository at this point in the history
dictionary key 0 is repeated with different values
  • Loading branch information
RiteshMaheshwari committed Jan 9, 2018
2 parents 95161ae + 8e50164 commit 42e4ab9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -212,7 +212,7 @@ from luminol.anomaly_detector import AnomalyDetector
from luminol.correlator import Correlator

ts1 = {0: 0, 1: 0.5, 2: 1, 3: 1, 4: 1, 5: 0, 6: 0, 7: 0, 8: 0}
ts2 = {0: 0, 0: 0.5, 2: 1, 3: 0.5, 4: 1, 5: 0, 6: 1, 7: 1, 8: 1}
ts2 = {0: 0, 1: 0.5, 2: 1, 3: 0.5, 4: 1, 5: 0, 6: 1, 7: 1, 8: 1}

my_detector = AnomalyDetector(ts1, score_threshold=1.5)
score = my_detector.get_all_scores()
Expand Down

0 comments on commit 42e4ab9

Please sign in to comment.