Description Usage Arguments Author(s) Examples

smoteNewis a necessary function that modifies the SMOTE algorithm in the following ways: (1) correct bug in original smotefamily::SMOTE() function and (2) lets the user specifiy which class to be oversampled.

1 | ```
smoteNew(data.x, data.y, K, dup_size = 0, class.to.oversample)
``` |

`data.x` |
A data frame or matrix of numeric-attributed dataset |

`data.y` |
A vector of a target class attribute corresponding to a dataset X |

`K` |
The number of nearest neighbors during sampling process |

`dup_size` |
The number or vector representing the desired times of synthetic minority instances over the original number of majority instances |

`class.to.oversample` |
Class to be oversampled |

Norbert Krautenbacher, Kevin Strauss, Maximilian Mandl, Christiane Fuchs

1 2 3 4 |

sambia documentation built on May 2, 2019, 9:15 a.m.

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.