predict.model | R Documentation |
This function predicts values based upon a model trained by any classification or regression model.
## S3 method for class 'model'
predict(object, test, fuzzy = FALSE, ...)
object |
The classification model (of class |
test |
The test set (a |
fuzzy |
A boolean indicating whether fuzzy classification is used or not. |
... |
Other parameters. |
A vector of predicted values (factor
).
model-class
require (datasets)
data (iris)
d = splitdata (iris, 5)
model = LDA (d$train.x, d$train.y)
predict (model, d$test.x)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.