Computes honest out-of-sample predictions for a morf.forest object relative to the desired class.
honest_predictions_cpp(
  unique_leaves_honest,
  y_m,
  y_m_1,
  honest_leaves,
  test_leaves
)List of size n.trees, storing the unique leaf ids of each tree relative to the honest sample.
Indicator variable, equal to 1 if the y is lower or equal than the m-th class and zero otherwise.
Indicator variable, equal to 1 if the y is lower or equal than the (m-1)-th class and zero otherwise.
Matrix of size (n.samples x n.trees). The i-th row stores the id of the leaf where the i-th honest observation falls in each tree.
Matrix of size (n.samples x n.trees). The i-th row stores the id of the leaf where the i-th test observation falls in each tree.