Prediction function for an alphasvm object
# S3 method for alphasvm
predict(
object,
newdata,
decision.values = FALSE,
probability = FALSE,
...,
na.action = stats::na.omit
)
the object trained from alphasvm
the test data set
a logical variable indicating whether to output the decision values
a logical variable indicating whether to output the classfication probability
currently not used
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.)