python - smote.fit_sample() 和 smote.fit_resample() 的区别

标签 python python-3.x data-science imblearn

, smote.fit_sample()smote.fit_resample() 之间有什么区别,我们什么时候应该使用一个而不是另一个?

最佳答案

fit_sample 替换为 fit_resampleChangelog v0.4

基于diff ,特别是:fit_sample = fit_resample;看起来 fit_resample 应该向后兼容以代替 fit_sample

关于python - smote.fit_sample() 和 smote.fit_resample() 的区别,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/65958883/

相关文章:

python - 如何在数据帧上执行 pd.get_dummies(),同时保留 NA 值而不是创建 NA 列?

python - Pandas 中带有运行编号的新列,有条件地递增

python - Matplotlib:获取和设置轴位置

python - 从 Rhythmbox 插件启动 Python Web 服务器

python-3.x - 如何操纵 Python 单元测试输出 '.'、E 和 F

mysql - Django:过滤带注释的值

python - 从两个不同大小的列表创建一个列表(元组?)

python - OSError : [Errno 36] File name too long: for python package and . txt 文件, Pandas 打开

python - 在 Python 中测试密码的强度

python - 尝试合并不同 Excel 文件中的列