python imblearn self.

python imblearn self.,第1张

参考链接:https://blog.csdn.net/lilidaren/article/details/107149576

调用imblearn库中的方法时,疯狂报错,无法通过pip uninstall和pip install解决,于是乎上网查一下怎么处理。想不到,最有效的方法居然是将imblearn里面的py文件,涉及该方法的sentences注释掉。今日份之震惊.jpg

  1. 进入Python的第三方库安装路径D:\Python\Python37\Lib\site-packages,进入Imblearn文件夹,根据提示注释该方法。

  2. \imblearn\under_sampling_prototype_selection_random_under_sampler.py
    涉及self._validate_data()方法的整句注释掉。

  3. \imblearn\base.py
    涉及self._validate_data()方法的整句注释掉。

欢迎分享,转载请注明来源:内存溢出

原文地址: https://outofmemory.cn/langs/715221.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-04-25
下一篇 2022-04-25

发表评论

登录后才能评论

评论列表(0条)

保存