predict.boosting | R Documentation |
This function predicts values based upon a model trained by a boosting method.
## S3 method for class 'boosting'
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
).
ADABOOST
, BAGGING
, boosting-class
## 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.