Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

predict.svmlight

Interface to SVMlight


Description

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

Usage

## S3 method for class '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.

Author(s)

Karsten Luebke, karsten.luebke@fom.de

See Also

Examples

## Not run: 
data(iris)
x <- svmlight(Species ~ ., data = iris)
predict(x, iris)

## End(Not run)

klaR

Classification and Visualization

v0.6-15
GPL-2 | GPL-3
Authors
Christian Roever, Nils Raabe, Karsten Luebke, Uwe Ligges, Gero Szepannek, Marc Zentgraf, David Meyer
Initial release
2020-02-18

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.