Description Usage Arguments Value
This function applies SVM in kernlab package to classify two groups of data points stored in two matrices, applies its classification boundary to testing dataset and outputs corresponding accuracy.
1 | SVM_cv(controls, exper, feature_index, test.control, test.exp)
|
controls |
Training matrix of healthy cells to be classified |
exper |
Training matrix of diseased cells to be classified |
feature_index |
A vector contain index of measurements used in classification, should be a vector of integers, length must be larger than 1 |
test.control |
Testing matrix of healthy cells |
test.exp |
Testing matrix of diseased cells |
accuracy Classificaiton accuracy of the training dataset
test Classification accuracy of the test dataset
weight Normalized weights of the features
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.