predict.boosting {fdm2id} | R Documentation |
Model predictions
Description
This function predicts values based upon a model trained by a boosting method.
Usage
## S3 method for class 'boosting'
predict(object, test, fuzzy = FALSE, ...)
Arguments
object |
The classification model (of class |
test |
The test set (a |
fuzzy |
A boolean indicating whether fuzzy classification is used or not. |
... |
Other parameters. |
Value
A vector of predicted values (factor
).
See Also
ADABOOST
, BAGGING
, boosting-class
Examples
## Not run:
require (datasets)
data (iris)
d = splitdata (iris, 5)
model = BAGGING (d$train.x, d$train.y, NB)
predict (model, d$test.x)
model = ADABOOST (d$train.x, d$train.y, NB)
predict (model, d$test.x)
## End(Not run)
[Package fdm2id version 0.9.9 Index]