powered by
Predicts new observations using the SVM learned by the svmlight-function.
svmlight
# S3 method for svmlight predict(object, newdata, scal = TRUE, ...)
If a classification is learned (type="C") in svmlight a list with elements ‘class’ and ‘posterior’ (scaled, if scal = TRUE).
type="C"
class
posterior
scal = TRUE
If a Regression is learned (type="R") in svmlight the predicted values.
type="R"
Object of class svmlight.
Data frame (or matrix) of cases to be predicted.
Logical, whether to scale membership values via e.scal.
e.scal
...
Karsten Luebke, karsten.luebke@fom.de
svmlight, svm
svm
if (FALSE) { data(iris) x <- svmlight(Species ~ ., data = iris) predict(x, iris) }
Run the code above in your browser using DataLab