Comments (8)
Could you try this example:
from luminol.anomaly_detector import AnomalyDetector
ts = {0: 0, 1: 0.5, 2: 1, 3: 1, 4: 1, 5: 0, 6: 0, 7: 0, 8: 0}
my_detector = AnomalyDetector(ts)
score = my_detector.get_all_scores()
for timestamp, value in score.iteritems():
print(timestamp, value)
We're working on an update to the readme with #30. You can preview it here.
Version 0.4 adds the Python 3 support -- pypi has not been updated yet, so for the time being you'd have to clone the repo and run python setup.py install
or install it like this:
pip install git+https://github.com/linkedin/luminol.git
from luminol.
Your example throws an error for me, using version 0.4 from github on Python 3.6
from luminol.anomaly_detector import AnomalyDetector
ts = {0: 0, 1: 0.5, 2: 1, 3: 1, 4: 1, 5: 0, 6: 0, 7: 0, 8: 0}
my_detector = AnomalyDetector(ts)
TypeError: '>' not supported between instances of 'NoneType' and 'int'
from luminol.
@ollieglass If you pip freeze
does it show luminol==0.4
?
from luminol.
Yes
from luminol.
Hmmm, I'm not able to reproduce this but it seems this would be the line that results in the error:
https://github.com/linkedin/luminol/blob/master/src/luminol/anomaly_detector.py#L120
Could we get the full traceback of the error message? As well as any details if this is on OSX/Linux/Windows?
from luminol.
I just reinstalled it, tried the example again and it's working. I'm really sorry, the error is almost certainly at my end.
from luminol.
No worries :) the install process is a bit jenky at the moment... hopefully we can get a new pypi release going soon. #35
from luminol.
I think this issue can be closed now that pypi has been updated
from luminol.
Related Issues (20)
- incorrect normalize method
- Citing luminol HOT 1
- multivariate time series HOT 1
- Timestamp format HOT 3
- Refined vs unrefined anomaly? HOT 1
- Exemple Run HOT 1
- the anomaly detection of the cyclical fluctuation HOT 1
- Data with multiple columns/features HOT 1
- Cross Correlation question
- 0.0 Anomaly Score for larger dataSet-bitmap_detector
- Regressing / smoothing input time-series based on anomalies
- without pip install, can I use it?
- Installation error in Alpine
- Materials to read about anomaly detection HOT 1
- Package Definition
- error in diff_percent_threshold.py
- Warn user on automatic modify of algorithm or parameters
- Streaming Data
- Where are the affiliation metrics?
- Latest fix/release is not published to pip HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from luminol.