3

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'

Grayrigel
  • 3,474
  • 5
  • 14
  • 32
Vikas Singh
  • 33
  • 1
  • 3

1 Answers1

9

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.

Grayrigel
  • 3,474
  • 5
  • 14
  • 32