Learn R Programming

probsvm (version 1.00)

predict.probsvm: Prediction function that provides class label prediction and class conditional probability estimation for objects with class "probsvm", returned by the probsvm function.

Description

Prediction of a test data set on the obtained probsvm model. See the description of probsvm for details.

Usage

"predict"(object,new.x=NULL,...)

Arguments

object
An object returned by a call of probsvm function.
new.x
The new predictor matrix. The number and order of predictors in new.x should be the same as those of x, which is used in the call of probsvm function. If not specified, the program uses the x matrix as the prediction object.
...
Not used.

Value

object
The model from a probsvm function.
new.x
The predictor matrix used for prediction.
pred.prob
The predicted class conditional probability. The class of each column is recorded in the column names.
pred.y
Predicted label for new.x.

See Also

probsvm