Learn R Programming

ocf (version 1.0.3)

predict_forest_weights: Forest Out-of-Sample Weights

Description

Computes forest out-of-sample honest weights for an ocf.forest object.

Usage

predict_forest_weights(forest, honest_sample, test_sample)

Value

Matrix of out-of-sample honest weights.

Arguments

forest

An ocf.forest object.

honest_sample

Honest sample.

test_sample

Test sample.

Details

forest must have been grown using only the training sample.