Description Usage Arguments Details Value Source Examples
Use the result of kernel density estimation to transform therefore augment features of train and test set.
1 | trans(train, test, d0, d1, yname, yflag = T)
|
train |
a train set that needs to be transformed. |
test |
a test set that needs to be transformed. |
d0 |
samples’ data in one class |
d1 |
samples’ data in one class |
yname |
the name of result-column. |
yflag |
a flag that describes whether there is result-column in the test set. |
For dataset d0 and d1, the default algorithm use Mkex( ) and Mkey( ) to estimate kernel density. Use f( ) and g( ), the outcome of estimation, to transform features in train and test set by log(f(x)) - log(g(x)).
The transform function outputs dataset of augmented features plus labeling feature.
For transformation, based on Wang H , Gu J , Wang S . An effective intrusion detection framework based on SVM with feature augmentation[J]. Knowledge-Based Systems, 2017, 136(Nov.15):130-139. Fan J , Feng Y , Jiang J , et al. Feature Augmentation via Nonparametrics and Selection (FANS) in High Dimensional Classification[J]. Journal of the American Statal Association, 2016, 111(513):275.
1 2 3 4 5 6 7 8 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.