Discussions>ImportError: cannot import name 'issparse' in keras>

ImportError: cannot import name 'issparse' in keras

I've just installed Keras 2.2.4 and tried to use issparse in my code, but here is what I get

importError: cannot import name 'issparse'

Is there any idea about this?

3 votesJW326.00
1 Answers

Just make sure you've installed scipy correctly.

import scipy
# if this works
from scipy.sparse import issparse

If this does not work, try to remove and re-install your package managers (pip, anaconda).

Couldn't find what you were looking for?and we will find an expert to answer.
How helpful was this page?