classifier_best_split_function: Get a get_best_split function from a classifier

Description Usage Arguments

View source: R/best_split_functions.R

Description

Returns a closure with formal arguments x, start, end and split_candidates that finds the maximizer of the gain_function given data x, start and end on split_candidates using the optimizer optimizer.

Usage

1
classifier_best_split_function(classifier, optimizer, control)

Arguments

classifier

A function with formal arguments x_train, y_train and control that returns class probabilities in a matrix of size nrow(x_train) x k, where k is the number of classes in y_train.

optimizer

Optimization method to be used to find an (approximate) of the maximum of the gain function. One of line_search for BS or similar, section_search for OBS or similar or two_step_search.

control

Control parameter as returned by hdcd_control


mlondschien/hdcd documentation built on Jan. 5, 2021, 11:26 p.m.