SVM: performs SVM to classify data points in two matrices

Description Usage Arguments Value

Description

This function applies SVM in kernlab package to classify two groups of data points stored in two matrices and returns the accuracy of SVM classification, and the direction of classification boundary

Usage

1
SVM(healthy, disease, feature_index = c(1:ncol(healthy)))

Arguments

healthy

Matrix of healthy cells to be classified

disease

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

Value

accuracy Accuracy of the classification

weightnorm Normalized weights of each feature. Negative weights are higher in disease matrix

center The center (average) of all data points (healthy and disease combined). Can be used to normalize test datasets

std The standard deviation of all data points (healthy and disease combined). Can be used to normalize test datasets

SVM_bn adjusted constant for calculating distance between data point to classification boundary in test data points


aspen-shen/RefCells documentation built on May 17, 2019, 2:49 p.m.