This function records the presence of the features
in an object of class glmnet
.
Value
A list with one element per response, each element being an integer vector of length equivalent to the number of features.
Details
The presence of the features in the glmnet
object in input is recorded and returned in a named vector
per output response.
If a feature is present in the model (i.e. the feature's coefficient
is different from zero) then the feature is returned with a 1
.
If a feature is missing in the model (i.e. the feature's coefficient
is equal to zero) then the feature is returned with a 0
.