Description Usage Arguments Value
Closure generating function to calculate gains for splits using a random forest classifier
1 | get_rf_gain_function(control)
|
control |
an object of type |
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
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.