LogicForest (version 2.1.0)

predict.LBoost: Prediction of Response Using LBoost

Description

Computes predicted values for newdata for as LBoost model fitted using LBoost.

Usage

"predict"(object, newdata, ...)

Arguments

object
an object of class LBoost.
newdata
a matrix or data frame containing new predictor values. If not given, predictions will be made for the original data used to construct the model.
...
not currently used.

Value

If new data are given, predict returns an object of class "LBoost.prediction", that includes a list of elements
prediction
a numeric vector of predicted responses.
weighted.prop
a numeric vector of the weighted proportion of trees in the forest that predict a class value of one.
If no new data are given, the function returns the LBoost model prediction for the original data.

See Also

LBoost

Examples

Run this code
data(LF.data, LF.testdata, LBoost.fit)


#NOTE- this is the LBoost model prediction for the original data
predict(object=LBoost.fit)

#predicting classes for new test data
predict(object=LBoost.fit, newdata=LF.testdata[,1:50])

Run the code above in your browser using DataCamp Workspace