Hi I am getting following error can anyone suggest me what could be wrong?
When I am calling, os.fit_sample(X,y)
'RandomOverSampler' object has no attribute '_validate_data'
This problem is originating possibly from the version of scikit-learn installed in your system. As mentioned in the release documentation of imblearn that the minimum scikit-learn version should be 0.23.0. So, reinstall the scikit-learn as the following :
conda install scikit-learn=0.23.0
This should hopefully resolve the problem.
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