Learn R Programming

SwarmSVM (version 0.1)

predict.alphasvm: Prediction function for an alphasvm object

Description

Prediction function for an alphasvm object

Usage

"predict"(object, newdata, decision.values = FALSE, probability = FALSE, ..., na.action = stats::na.omit)

Arguments

object
the object trained from alphasvm
newdata
the test data set
decision.values
a logical variable indicating whether to output the decision values
probability
a logical variable indicating whether to output the classfication probability
...
currently not used
na.action
A function to specify the action to be taken if 'NA's are found. The default action is stats::na.omit, which leads to rejection of cases with missing values on any required variable. An alternative is stats::na.fail, which causes an error if NA cases are found. (NOTE: If given, this argument must be named.)