predict.probsvm: Prediction function that provides class label prediction and...

Description Usage Arguments Value See Also

Description

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

Usage

1
2
## S3 method for class 'probsvm'
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


probsvm documentation built on May 1, 2019, 10:56 p.m.