Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

oversampling using smote

# oversampling using adasyn
from imblearn.over_sampling import ADASYN
ada = ADASYN(random_state = 42)
x_train_ada, y_train_ada = ada.fit_resample(x_train,y_train)
 
PREVIOUS NEXT
Tagged: #oversampling #smote
ADD COMMENT
Topic
Name
7+4 =