predict.svm.prmdt: predict.svm.prmdt

View source: R/predict.R

predict.svm.prmdtR Documentation

predict.svm.prmdt

Description

Return prediction for a svm model.

Usage

## S3 method for class 'svm.prmdt'
predict(
  object,
  newdata,
  type = "class",
  decision.values = FALSE,
  ...,
  na.action = na.omit
)

Arguments

object

a svm model object for which prediction is desired.

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.)

Value

a vector or matrix of predictionsfor svm model.


PROMiDAT/trainR documentation built on Sept. 13, 2022, 7:26 a.m.