'RandomOverSampler' object has no attribute '_validate_data'

Viewed 4798

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'

1 Answers

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.

Related