Github Link Of Luminol Library: https://github.com/linkedin/luminol
Can anyone explain me with a sample code, how to use this module for finding anomalies in data set.
I want to use this module for finding the anomalies in my time series data.
P.S.: I tried the example 1 provided in README.md but getting error, so someone please provide me a working example for finding anomalies.
Example 1 Put anomaly scores in a list.
from luminol.anomaly_detector import AnomalyDetector
my_detector = AnomalyDetector(ts)
score = my_detector.get_all_scores()
anom_score = list()
for (timestamp, value) in score.iteritems():
t_str = time.strftime('%Y-%m-%d %H:%M:%S', time.localtime(timestamp))
anom_score.append([t_str, value])
Getting value error: (22, 'Invalid argument') In line: t_str = time.strftime('%Y-%m-%d %H :%M%S', time.localtime(timestamp))
Using Python 2.7
Thanks :)