Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

from imblearn.over_sampling import smote error

# install imblearn on your notebook
!pip3 install imblearn

from imblearn.over_sampling import SMOTE


X_resampled, Y_resampled = SMOTE().fit_resample(X, Y)
print("Resampled shape of X: ", X_resampled.shape)
print("Resampled shape of Y: ", Y_resampled.shape)
 
PREVIOUS NEXT
Tagged: #import #smote #error
ADD COMMENT
Topic
Name
6+7 =