augment_and_noise: Replicate observations with added noise.

Description Usage Arguments Value

View source: R/merged_list_functions.r

Description

This function gets called by 'augment' and creates copies of samples with a specified amount of random noise. For more information see the docstring of 'augment'. The anonymous data.table function for replication and noise addition acts on all columns which are numeric, but neither the response variable or 0/1 only columns, as these are either dummy variables or empty columns. It copies each row of a train set as often as defined by 'copy_number' and adds or substracts randomly the amount of 'noise_factor'.

Usage

1
augment_and_noise(split_table, copy_number, noise_factor)

Arguments

split_table

a list consisting of "train_set" and "test_set"

copy_number

an integer specifying the number of copies, 0 means no augmentation takes place and 'noise_factor' is ignored

noise_factor

a value between 0 and 100 (100 equals 10,000 % noise) specifing the relative amount of noise randomly added or substracted to/from the original value. e.g. 0.05 == +-5 % noise

Value

A list of lists, the list item name is updated to reflect the number of copies and the noise value


RJ333/phyloseq2ML documentation built on June 2, 2020, 9:25 p.m.