Skip to contents

Selects a model from a list

Usage

select(selector, models, merr, sderr, scorer, ...)

# S4 method for Selector,TrainedList,ANY,ANY,ANY
select(selector, models, merr, sderr, scorer, ...)

# S4 method for Selector,TrainedList,numeric,numeric,Scorer
select(selector, models, merr, sderr, scorer, ...)

# S4 method for Selector,TrainedList,numeric,missing,Scorer
select(selector, models, merr, sderr, scorer, ...)

Arguments

selector

a Selector object

models

a TrainedList object containing trained models. Each element corresponds to an element in merr and sderr.

merr

vector of error estimates

sderr

vector of standard errors of the estimates

scorer

the Scorer object used to generate merr and sderr

Value

list of 2 elements, containing the index of the model having optimal accuracy and the index of the model having accuracy within 1 standard error from the optimal accuracy