predict.svm.prmdt | R Documentation |
Return prediction for a svm
model.
## S3 method for class 'svm.prmdt'
predict(
object,
newdata,
type = "class",
decision.values = FALSE,
...,
na.action = na.omit
)
object |
a |
newdata |
an optional data frame in which to look for variables with which to predict. |
type |
type of prediction 'prob' or 'class' (default). |
decision.values |
Logical controlling whether the decision values of all binary classifiers computed in multiclass classification shall be computed and returned. |
... |
additional arguments affecting the predictions produced. |
na.action |
A function to specify the action to be taken if ‘NA’s are found. The default action is na.omit, which leads to rejection of cases with missing values on any required variable. An alternative is na.fail, which causes an error if NA cases are found. (NOTE: If given, this argument must be named.) |
a vector or matrix of predictionsfor svm model.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.