| predict.svms | R Documentation |
Predict from a Standard SVM
## S3 method for class 'svms'
predict(object, newdata, decision.values = FALSE, ...)
object |
A fitted |
newdata |
Numeric matrix or data frame. |
decision.values |
If |
... |
Unused. |
A factor of predicted classes, or a numeric vector when
decision.values = TRUE.
set.seed(2)
dat <- gen_moons(30)
fit <- svms(dat$x, dat$y)
predict(fit, dat$x, decision.values = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.