Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
嗨,我收到以下错误,任何人都可以建议我有什么问题吗?
当我打电话时,os.fit_sample(X,y)
os.fit_sample(X,y)
'RandomOverSampler' 对象没有属性 '_validate_data'
此问题可能源于scikit-learn您系统中安装的版本。如发布文档中imblearn所述,最低scikit-learn版本应为0.23.0. 因此,重新安装 scikit-learn,如下所示:
scikit-learn
imblearn
0.23.0
conda install scikit-learn=0.23.0
这应该有望解决问题。