honest_predictions {ocf} | R Documentation |
Honest Out-of-Sample Predictions
Description
Computes honest out-of-sample predictions for an ocf.forest
object.
Usage
honest_predictions(
forest,
honest_sample,
test_sample,
y_m_honest,
y_m_1_honest
)
Arguments
forest |
|
honest_sample |
Honest sample. |
test_sample |
Test sample. |
y_m_honest |
Indicator variable, whether the outcome is smaller than or equal to the m-th class. |
y_m_1_honest |
Indicator variable, whether the outcome is smaller than or equal to the (m-1)-th class. |
Details
honest_predictions
replaces the leaf estimates of forest
using the outcome from the associated
honest sample (using the prediction method of ocf
). The honest sample must not have been used
to build the trees.
Value
Out-of-sample honest predictions.
[Package ocf version 1.0.1 Index]