Selector Class An S4 class providing the methods to select a model from a list.
Source:R/class_Selector.R
Selector-class.RdThe object consists of 3 slots
Constructor for the S4 Selector object.
Usage
Selector(id, selector, logger = Logger(verbose = FALSE))Arguments
- id
object identifier, must be equivalent to the id of the associated Trainer. If learning method is one of the supported by renoir, the constructor will automatically select a built-in
selectorfunction.- selector
(optional) function used to select a model from a list. Used if
idis not one of the supported by renoir. Ifselectoris provided it must conform to the renoir common interface, and must have the following formal arguments:- models
list of models
- ...
additional arguments
It should return the index of the selected model
- logger
a Logger
Slots
idthe object identifier, it must be equivalent to the learning method name (i.e. the trainer id)
selectorfunction to use for selecting the model
loggeran object of class Logger