Description Usage Arguments Details Value
View source: R/predict.harfunc.R
The function predict
computes the prediction of membership from a new data set classified by harvested classification model of training data.
1 |
harfunc.object |
the output of harfunc function. |
data |
test data |
num.var |
number of explaining varibles |
To run the predict
function, a trained harvested classification tree formed by harvest
function is required.
pred.mat
is a data frame stored the information of result of prediction with the following columns:
belong
the node that data point belongs to
possibility
the probability of point being in class 1
predict
the simple perdict based on whether probability is larger than 0.5.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.