powered by
This function predicts values based upon a model trained by any classification or regression model.
# S3 method for model predict(object, test, fuzzy = FALSE, ...)
A vector of predicted values (factor).
factor
The classification model (of class cda-class, created by CDA).
cda-class
CDA
The test set (a data.frame).
data.frame
A boolean indicating whether fuzzy classification is used or not.
Other parameters.
model-class
require (datasets) data (iris) d = splitdata (iris, 5) model = LDA (d$train.x, d$train.y) predict (model, d$test.x)
Run the code above in your browser using DataLab