Learn R Programming

kebabs (version 1.6.2)

predictSVM: SVM Access for Training and Prediction

Description

Functions for SVM access (used only for testing purpose)

Usage

predictSVM.KernelMatrix(x, model, predictionType, verbose, ...)

## S3 method for class 'missing': predictSVM(x, model, predictionType, verbose, ...)

## S3 method for class 'ExplicitRepresentation': predictSVM(x, model, predictionType, verbose, ...)

## S3 method for class 'KernelMatrix': trainSVM(x, y = NULL, svmInfo, verbose, ...)

## S3 method for class 'ExplicitRepresentation': trainSVM(x, y = NULL, svmInfo, verbose, ...)

Arguments

x
kernel matrix or explicit representation
model
KeBABS model
predictionType
type of prediction
verbose
controlling verbosity
...
additional arguments to be passed to the selected SVM
y
label vector
svmInfo
SVM related info

Value

  • trainSVM: returns the SVM specific model predictSVM: returns the prediction in native format

Details

These methods are exported only for test purpose and are not meant to be generally used.

Examples

Run this code
## this function is exported only for testing purpose
## use function kbsvm instead for examples see help page of kbsvm
data(TFBS)

Run the code above in your browser using DataLab