subset_mods: subset_mods

Description Usage Arguments Details Value Examples

View source: R/subset_models.R

Description

subset the parameter output of a performance_measures object

Usage

1
subset_mods(perf_meas_OBJ, bst_mods = 5, train_params = FALSE)

Arguments

perf_meas_OBJ

a resulted object of the performance_measures function

bst_mods

the number of models to select (rows of each algorithm)

train_params

if the subset should be based on train or test output

Details

This function takes the result from the performance_measures function, the number of best performing grid-models and a boolean specifying if the train or test predictions should be taken into account when subseting the data.frames and it returns a list with the optimal parameters for each algorithm.

Value

a list of lists

Examples

1
2
3
4
5
6
7
## Not run: 

bst_m = subset_mods(perf_meas_OBJ = perf, bst_mods = 5, train_params = FALSE)

bst_m

## End(Not run)

mlampros/RandomSearchR documentation built on Feb. 18, 2021, 9:48 a.m.