Screener Class An S4 class providing the methods to perform a features screening.
Source:R/class_Screener.R
Screener-class.Rd
The object consists of 3 slots
Constructor for the S4 Screener object.
Usage
Screener(id, screener, parameters, logger = Logger(verbose = F))
Arguments
- id
a name to identify the screener. If screening method is one of the supported by renoir, the constructor will automatically select a
screener
. Seesupported_screening_methods()
for the supported methods.- screener
(optional) function to screen the data for features selection. Used if
id
is not one of the supported by renoir. Ifscreener
is provided it must conform to the renoir common interface, and must have the following formal arguments:- x
the input matrix, where rows are observations and columns are variables.
- y
the response variable. Its number of rows must match the number of rows of
x
.- weights
priors of the observations
- resp.type
the response type
- observations
indices of observations to keep
- ...
additional arguments
The output must be a Screened object, where the slot
score
stores the feature scores with the same order as inx
- parameters
list containing the parameters to fix for the chosen screening method
- logger
a Logger
Slots
id
a name to identify the screener
screener
screener function
parameters
list containing the parameters for the chosen screening method
logger
a Logger