Join us for
RADAR: AI Edition

morf (version 1.0.0)

honest_predictions: Honest Out-of-Sample Predictions

Description

Computes honest out-of-sample predictions for an morf.forest object.

Usage

honest_predictions(
  forest,
  honest_sample,
  test_sample,
  y_m_honest,
  y_m_1_honest
)

Value

Out-of-sample honest predictions.

Arguments

forest

morf.forest object.

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 morf). The honest sample must not have been used to build the trees.