1
$\begingroup$

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

$\endgroup$

1 Answer 1

1
$\begingroup$

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.

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

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