过采样方法#

imblearn.over_sampling 提供了一组方法来进行过采样。

基本过采样#

RandomOverSampler(*[, sampling_strategy, ...])

用于执行随机过采样的类。

SMOTE算法#

SMOTE(*[, sampling_strategy, random_state, ...])

使用SMOTE执行过采样的类。

SMOTENC(categorical_features, *[, ...])

针对名义和连续数据的合成少数类过采样技术。

SMOTEN([categorical_encoder, ...])

用于名义数据的合成少数类过采样技术。

ADASYN(*[, sampling_strategy, random_state, ...])

使用自适应合成(ADASYN)算法进行过采样。

BorderlineSMOTE(*[, sampling_strategy, ...])

使用边界线SMOTE进行过采样。

KMeansSMOTE(*[, sampling_strategy, ...])

在使用SMOTE进行过采样之前应用KMeans聚类。

SVMSMOTE(*[, sampling_strategy, ...])

使用SVM-SMOTE进行过采样。