get_best: Get index of best results

Description Usage Arguments Value

View source: R/workflow_utils.R

Description

Get index of best results

Usage

1
get_best(grid.res, metrics, metrics.max, stat)

Arguments

grid.res

data frame with parameters and metrics results

metrics

vector of (up to 2) metrics that should be used to decide best internal results

metrics.max

vector of Boolean value indicating whether metrics should be maximized for best results (in corresponding order to metrics)

stat

Stat that should be used to decide on best result (can be "MED" (median), "MEAN", "IQR" or "SD")

Value

the row index of the best results


mrfoliveira/STResampling-JDSA2020 documentation built on June 28, 2021, 7:01 p.m.