smote | R Documentation |

Synthetic Minority Oversampling Technique (SMOTE) algorithm for imbalanced classification data.

smote(y, x, k = 5, over = NULL, yminor = NULL)

`y` |
Vector of response outcome as a factor |

`x` |
Matrix of predictors |

`k` |
Range of KNN to consider for generation of new data |

`over` |
Amount of oversampling of the minority class. If set to |

`yminor` |
Optional character value specifying the level in |

List containing extended matrix `x`

of synthesised data and extended
response vector `y`

Chawla, N. V., Bowyer, K. W., Hall, L. O., and Kegelmeyer, W. P. (2002).
*Smote: Synthetic minority over-sampling technique*. Journal of
Artificial Intelligence Research, 16:321-357.

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.