I am trying to implement SMOTE in Orange Web Services, but having troubles with the imblearn module.

Following screenshot is from Orange Python Script widget:

from imblearn import under_sampling, over_sampling
from imblearn.over_sampling import SMOTE

enter image description here

I can import it without problems with Python: enter image description here

The one in Orange's Python Script widget and the one in cmd are obviously not the same Python environments. Confirm by inspecting:

import sys
print(sys.executable)

Fix the issue by installing imblearn into the Orange's Python environment.

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.