📜  使用 smote 进行过采样 - Python 代码示例

📅  最后修改于: 2022-03-11 14:45:17.828000             🧑  作者: Mango

代码示例1
# 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)