Generates synthetic minority examples for a dataset trying to preserve the variance and mean of the minority class. Works on every type of dataset.
rwo(dataset, numInstances, classAttr = "Class")
Integer. Number of new minority examples to generate.
numInstances new minority examples for
adding to the each numeric column of the j-th example its variance scalated
by the inverse of the number of minority examples and a factor following a
N(0,1) distribution which depends on the example. When the column is
nominal, it uses a roulette scheme.
data.frame with the same structure as
containing the generated synthetic examples.
Zhang, Huaxiang; Li, Mingfang. Rwo-Sampling: A Random Walk Over-Sampling Approach To Imbalanced Data Classification. Information Fusion 20 (2014), p. 99<e2><80><93>116.
1 2 3
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.