I'm trying to use the SMOTE
package in the imblearn
library using:
from imblearn.over_sampling import SMOTE
getting the following error message:
ImportError: cannot import name 'pairwise_distances_chunked'.
Here is a screenshot of my import screenshot of download confirmation
Really stumped on this, any guidance would be greatly appreciated.
I have encountered a similar problem. I could solve by opening a new IPython console.
I know it's a bit late, but for anyone using Jupyter notebook, I could solve my problem by just restarting the kernel.
Link:
ImportError: cannot import name check_array from sklearn.utils.validation
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With