Synthetic Minority Oversampling Technique (SMOTE, 2002)
SMOTE.RdResampling with SMOTE.
Arguments
- x
feature matrix.
- y
a factor class variable. Can have more than two classes.
- k
number of neighbors. Default is 5.
- ovRate
Oversampling rate. Class \(j\) receives
round(ovRate * (n_max - n_j))synthetic samples, wheren_maxis the size of the largest class (halves are rounded up). Default is 1 meaning full balance. A vector with one value per class is also accepted.- ...
not used.
Value
a list with resampled dataset.
- x_new
Resampled feature matrix.
- y_new
Resampled target variable.
- x_syn
Generated synthetic feature data.
- y_syn
Generated synthetic label data.
Details
Year: 2002.
SMOTE (Chawla et al., 2002) is an oversampling method which creates links between positive samples and nearest neighbors and generates synthetic samples along that link.
It is well known that SMOTE is sensitive to noisy data. It may create more noise.
Can work with classes more than 2.
Note: Much faster than smotefamily::SMOTE().

