Description Usage Arguments Value Note
This is the main routine for testing an SVM (or doing predictions).
1 2 3 4 |
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. |
An SVM Test Object.
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.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.