Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

'RandomOverSampler' object has no attribute '_validate_data'

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'

like image 245
Vikas Singh Avatar asked May 12 '26 06:05

Vikas Singh


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.

like image 64
Grayrigel Avatar answered May 14 '26 18:05

Grayrigel