Description Usage Arguments Details Value Source Examples
Train SVM model based on train set which is logarithm marginal density ratio transformed. Apply trained model on test set to predict.
1 | classifier(training, test, yname, levels, yflag = T, svm = c("svmt"))
|
training |
original train set. |
test |
original test set. |
yname |
the name of result-column. |
levels |
results in result-column. |
yflag |
a flag that describes whether there is result-column in the test set. |
svm |
type of support vector machine. |
First, apply logarithm marginal density ratio transformation on train and test set. Then, train SVM model based on transformed train set. Finally, exert the model to predict category by transformed test set.
The function gives the result of prediction base train and test set.
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. For SVM, based on • Chang, Chih-Chung and Lin, Chih-Jen: LIBSVM: a library for Support Vector Machines http://www.csie.ntu.edu.tw/~cjlin/libsvm • Exact formulations of models, algorithms, etc. can be found in the document: Chang, Chih-Chung and Lin, Chih-Jen: LIBSVM: a library for Support Vector Machines http://www.csie.ntu.edu.tw/~cjlin/papers/libsvm.ps.gz • More implementation details and speed benchmarks can be found on: Rong-En Fan and Pai-Hsune Chen and Chih-Jen Lin: Working Set Selection Using the Second Order Information for Training SVM http://www.csie.ntu.edu.tw/~cjlin/papers/quadworkset.pdf
1 2 3 4 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.