pafoster / pyitlib

A library of information-theoretic methods for data analysis and machine learning, implemented in Python and NumPy.
MIT License
90 stars 17 forks source link

information_mutual throws TypeError: #1

Closed bon closed 6 years ago

bon commented 6 years ago

After install via pip under python2.7 then following the examples in the docs until

drv.information_mutual(X)

This throws the error

TypeError: 'numpy.float64' object cannot be interpreted as an index
pafoster commented 6 years ago

Thanks for reporting this. I believe this relates to NumPy 1.12 and later versions, which removed deprecated support for floating point indices.

I've released a new version with some fixes. Please could you confirm whether this error still appears?

bon commented 6 years ago

Yes, working in 77b1fe01. Thanks!