honest_fitted | R Documentation |
Computes honest in-sample predictions for an ocf.forest
object.
honest_fitted(forest, train_sample, honest_sample, y_m_honest, y_m_1_honest)
forest |
An |
train_sample |
Training sample. |
honest_sample |
Honest 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. |
forest
must have been grown using only the training sample. honest_fitted
replaces the leaf estimates
using the outcome from the honest sample (using the prediction method of ocf
).
In-sample honest predictions.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.