augmentation | R Documentation |
This function is a data augmentation technique. It duplicates rows and add gaussian noise to the duplicates.
augmentation(dataset, target, n = 5, sigma = 0.1, seed = NULL)
dataset |
The dataset to be split ( |
target |
The column index of the target variable (class label or response variable). |
n |
The scaling factor (as an integer value). |
sigma |
The baseline variance for the noise generation. |
seed |
A specified seed for random number generation. |
An augmented dataset.
require (datasets)
data (iris)
d = augmentation (iris, 5)
summary (iris)
summary (d)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.