Description Usage Arguments Details Value Examples
Preprosim parameter objects contain eight contaminations: noise, lowvar, misval, irfeature, classswap, classimbalance, volumedecrease and outlier. Each contamination has three sub parameters: cols as columns the contamination is applied to, param as the parameter of the contaminations itself (i.e. intensity of contamination) and order as order in which the parameter is applied to the data.
1 | changeparam(object, contamination, param, value)
|
object |
(preprosimparameter object) |
contamination |
(character) one of the following: noise, lowvar, misval, irfeature, classswap, classimbalance, volumedecrease, outlier |
param |
(character) one of the following: cols, param, order |
value |
(numeric) scalar (for order) or vector (for cols and param) of parameter values |
The order of contaminations (cols parameter) must be between 1 and 8, and no two contaminations can have the same order. The contamination parameter (param parameter) must start with 0 (e.g. param="param", value=c(0,0.3))
preprosimparameter class object
1 2 3 4 | pa <- newparam(iris)
pa <- changeparam(pa, "noise", "cols", value=1)
pa <- changeparam(pa, "noise", "param", value=c(0,0.1))
pa <- changeparam(pa, "noise", "order", value=1)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.