Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Python 3 ImportError: cannot import name 'maxentropy'

Tags:

python

I am using python 3.5.3 and for

from scipy import maxentropy

I am getting the error: ImportError: cannot import name 'maxentropy' Please suggest solution for the error. Thank you

like image 727
Dattaprasad Avatar asked Apr 25 '26 12:04

Dattaprasad


2 Answers

This is what I found here:

The scipy.maxentropy module, which was deprecated in the 0.10.0 release, has been removed. Logistic regression in scikits.learn is a good and modern alternative for this functionality.

Hope it helps

like image 96
Georgy Avatar answered Apr 27 '26 01:04

Georgy


The lates version of scipy is 0.19 and maxentropy module will not work with 0.11 or higher versions. If you have 0.11 or higher than try to download and install scipy 0.10 from the link below:

DOWNLOAD LINK TO SCIPY 0.10: https://pypi.python.org/pypi/scipy/0.10.1

SOURCE: https://docs.scipy.org/doc/scipy-0.10.1/reference/maxentropy.html