Learn R Programming

fdm2id (version 0.9.9)

predict.boosting: Model predictions

Description

This function predicts values based upon a model trained by a boosting method.

Usage

# S3 method for boosting
predict(object, test, fuzzy = FALSE, ...)

Value

A vector of predicted values (factor).

Arguments

object

The classification model (of class boosting-class, created by ADABOOST or BAGGING).

test

The test set (a data.frame)

fuzzy

A boolean indicating whether fuzzy classification is used or not.

...

Other parameters.

See Also

ADABOOST, BAGGING, boosting-class

Examples

Run this code
if (FALSE) {
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)
}

Run the code above in your browser using DataLab