Git Product home page Git Product logo

ndd's People

Contributors

ccattuto avatar simomarsili avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

ndd's Issues

Support for python 3.10?

Hello! I love this package, thanks for writing it.

I see that python 3.10 doesn't seem to be an option when installing from conda-forge. Is that right? Is there any plan to allow compatibility with python 3.10? Thanks.

Ndd library can't run . No 'ndd.fnsb' file

Hello, the test_basic.py file in the test folder runs error.
ModuleNotFoundError: No module named 'ndd.fnsb'
Calculating the entropy using ndd alone will also report an error.
ModuleNotFoundError: No module named 'ndd.fnsb'
error code
I don't know how to solve this problem, I hope I can get your help. Thank you for answering my question.

Continuous and Matrix

Hi, thanks for the package, do you know if there is anything out there for continuous value matrices.

code in README does not return the reported value

import ndd
counts = [12, 4, 12, 4, 5, 3, 1, 5, 1, 2, 2, 2, 2, 11, 3, 4, 12, 12, 1, 2]
entropy_estimate = ndd.entropy(counts, k=100)
entropy_estimate
2.8246841846955477

README reports 2.840012048914245 instead.

_nsb.nsb() 2nd argument (nc) can't be converted to int

Hi,

I used to run this software on a different machine, but following a fresh install I seem to be incurring in the issue below, demonstrated using the simple code example from the project's README. I'm on Python v3.6.5, ndd v0.7 (installed via pip), Numpy v1.14.5, gfortran v7.3.0.

Python 3.6.5 (default, Apr  1 2018, 05:46:30) 
[GCC 7.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import ndd
>>> counts = [7, 3, 5, 8, 9, 1, 3, 3, 1, 0, 2, 5, 2, 11, 4, 23, 5, 0, 8, 0]
>>> entropy_estimate = ndd.entropy(counts)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/local/lib/python3.6/dist-packages/ndd/nsb.py", line 127, in entropy
    result = estimator(counts, *args)
TypeError: _nsb.nsb() 2nd argument (nc) can't be converted to int

Any idea what could be causing this? Thanks a lot in advance - let me know if there's any extra info I can provide.

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.