simomarsili / ndd Goto Github PK
View Code? Open in Web Editor NEWBayesian entropy estimation in Python - via the Nemenman-Schafee-Bialek algorithm
License: BSD 3-Clause "New" or "Revised" License
Bayesian entropy estimation in Python - via the Nemenman-Schafee-Bialek algorithm
License: BSD 3-Clause "New" or "Revised" License
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.
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.
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'
I don't know how to solve this problem, I hope I can get your help. Thank you for answering my question.
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.
Hi, thanks for the package, do you know if there is anything out there for continuous value matrices.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.