predict.svmlight

0th

Percentile

Interface to SVMlight

Predicts new observations using the SVM learned by the svmlight-function.

Keywords
classif
Usage
# S3 method for svmlight
predict(object, newdata, scal = TRUE, ...)
Arguments
object

Object of class svmlight.

newdata

Data frame (or matrix) of cases to be predicted.

scal

Logical, whether to scale membership values via e.scal.

...

Value

If a classification is learned (type="C") in svmlight a list with elements ‘class’ and ‘posterior’ (scaled, if scal = TRUE).

If a Regression is learned (type="R") in svmlight the predicted values.

See Also

svmlight, svm

Aliases
  • predict.svmlight
Examples
# NOT RUN {
data(iris)
x <- svmlight(Species ~ ., data = iris)
predict(x, iris)
# }
Documentation reproduced from package klaR, version 0.6-14, License: GPL-2

Community examples

Looks like there are no examples yet.