test_svm: Learns and classifies using an SVM

Description Usage Arguments Value

Description

This function trains an SVM on the training set and tests its accuracy on a test set. It reports the fit, prediction results, area under curve (AUC accuracy) on test, decision values ( probability of belonging to predicted class) and original labels of test

Usage

1
test_svm(Xtrain, ytrain, Xtest, ytest)

Arguments

Xtrain

Predictor variables of training set

ytrain

Response variables of training set

Xtest

Predictor variables of test set

ytest

Response variables of test set

Value

A list with model fit, test results, AUC, probability per class, original labels


ssarda/genomeutils documentation built on May 30, 2019, 8:42 a.m.