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?

kerasissparsescipy
3 votesJW229.00
1 Answers
JO218.00
3

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).

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