我试图在Orange Web服务中实现SMOTE,但是imblearn模块有问题。
下面的屏幕截图来自Orange Python脚本小部件:
from imblearn import under_sampling, over_sampling
from imblearn.over_sampling import SMOTE
我可以导入它,而不会遇到Python的问题:

发布于 2018-12-07 14:16:30
Orange的Python脚本小部件和cmd中的小部件显然不是相同的Python环境。通过检查确认:
import sys
print(sys.executable)通过在Orange的Python环境中安装imblearn来解决这个问题。
https://datascience.stackexchange.com/questions/41766
复制相似问题