LogicForest (version 2.1.0)

print.LFprediction: Prints Logic Forest Prediction Output

Description

Prints predictions from a logic forest model.

Usage

"print"(x, ...)

Arguments

x
an object of class LF.prediction.
...
other options are ignored.

Value

newdata or the out-of-bag predictions for data used to construct the logic forest and a numeric vector of the proportion of trees in a logic forest that predict a class of one.

See Also

predict.logforest

Examples

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

#OOB prediction on original data
predict(logforest.fit)

#Prediction for new test data
predict(logforest.fit, newdata=LF.testdata[,1:50])

Run the code above in your browser using DataCamp Workspace