Learn R Programming

morf (version 1.0.0)

forest_weights_fitted_cpp: Forest In-Sample Honest Weights

Description

Computes forest in-sample honest weights for a morf.forest object relative to the m-th class.

Usage

forest_weights_fitted_cpp(
  leaf_IDs_train_list,
  leaf_IDs_honest_list,
  leaf_size_honest_list
)

Arguments

leaf_IDs_train_list

List of size n.trees, storing the leaf of each tree where training units fall into.

leaf_IDs_honest_list

List of size n.trees, storing the leaf of each tree where honest units fall into.

leaf_size_honest_list

List of size n.trees, storing the size of the leaves of each tree computed with honest units.