get_rf_gain_function: Closure generating function to calculate gains for splits...

Description Usage Arguments Value

Description

Closure generating function to calculate gains for splits using a random forest classifier

Usage

1

Arguments

control

an object of type hdcd_control returned by hdcd_control

Value

A closure with parameters x, start and end, that when evaluated will itself return a closure with parameter split_point. This calculates the gain when splitting the segment (start, end] of x at split_point. If the closure is additionally supplied with evaluate_all = TRUE, an array of length nrow(x) is returned with predictions for each observation in (start, end] when split at split_point.


MalteLond/rfcd documentation built on June 19, 2019, 2:52 p.m.