Skip to content Skip to sidebar Skip to footer

Randomundersampler' Object Has No Attribute 'fit_resample'

I am using RandomUnderSampler from imblearn, but I get the following error. Any ideas? Thanks from imblearn.under_sampling import RandomUnderSampler print('Initial dataset shape %s

Solution 1:

The method fit_resample was introduced lately to imbalanced-learn API. Either update imbalanced-learn or use fit_sample instead.


Post a Comment for "Randomundersampler' Object Has No Attribute 'fit_resample'"