Description Usage Arguments Value Examples
Oversampling wrapper
1 | oversample(dataset, method, class_attr = "Class", ...)
|
dataset |
we want to perform oversampling on |
method |
selected method of oversampling |
class_attr |
|
... |
Further arguments for |
An oversampled dataset
1 2 3 4 5 6 7 8 9 | library("smartdata")
data(iris0, package = "imbalance")
super_iris <- oversample(iris0, method = "MWMOTE", class_attr = "Class",
ratio = 0.8, filtering = TRUE)
super_iris <- oversample(iris0, method = "SMOTE", class_attr = "Class", ratio = 0.6)
super_iris <- oversample(iris0, method = "PDFOS", class_attr = "Class", ratio = 0.6)
super_iris <- oversample(iris0, method = "RWO", class_attr = "Class", ratio = 0.8)
super_iris <- oversample(iris0, method = "SLMOTE", class_attr = "Class")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.