testSVM: Test a trained SVM on given data.

Description Usage Arguments Value Note

Description

This is the main routine for testing an SVM (or doing predictions).

Usage

1
2
3
4
testSVM(method = NULL, testDataFile = NULL, testDataX = NULL,
  testDataY = NULL, model = NULL, modelFile = NULL,
  readPredictions = FALSE, predictionsFile = NULL, extraParameter = "",
  verbose = FALSE, ...)

Arguments

method

Name of the method/solver to use for testing. If NULL, a detectModelTypeFromFile will be called on the given model (or modelfile).

testDataFile

File to read training data from. Cannot be specified at the same time as testDataX and testDataY.

testDataX

Matrix to read training data from. Cannot be specified at the same time as testDataFile.

testDataY

Matrix to read training label from. Cannot be specified at the same time as testDataFile.

model

A trained SVM model. Cannot be specified at the same time as modelFile.

modelFile

Path of the model file. Cannot be specified at the same time as model.

readPredictions

Shall the predictions be read back into memory and added to the model?

predictionsFile

File to which the predictions will be written.

extraParameter

Extra parameters for solver in form of a string.

verbose

Be verbose?

...

Further parameters that will be passed to the createTestArguments function of the wrapper.

Value

An SVM Test Object.

Note

testDataFile and testDataX,testDataY are exclusive parameters, i.e. you cannot specify both.

Make sure the modelFile is a character string and not a factor! Else you might obtain strange modelfile arguments.


aydindemircioglu/SVMBridge documentation built on May 11, 2019, 4:13 p.m.