Coder Social home page Coder Social logo

Comments (8)

brennv avatar brennv commented on June 24, 2024 3

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.

ollieglass avatar ollieglass commented on June 24, 2024

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.

brennv avatar brennv commented on June 24, 2024

@ollieglass If you pip freeze does it show luminol==0.4?

from luminol.

ollieglass avatar ollieglass commented on June 24, 2024

Yes

from luminol.

brennv avatar brennv commented on June 24, 2024

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.

ollieglass avatar ollieglass commented on June 24, 2024

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.

brennv avatar brennv commented on June 24, 2024

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.

brennv avatar brennv commented on June 24, 2024

I think this issue can be closed now that pypi has been updated

from luminol.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.