This function marks the features of an object of class
glmnet
.
Usage
mark_glmnet(object, marking.system = c("presence", "coefficient"))
Arguments
- marking.system
a length-one character vector, indicating a strategy for marking the features. Available options are
"presence"
(default) and"coefficient"
- obejct
an object of class Trained
Details
The features in the Trained object in input
are marked, i.e. a numerical value is assigned to each feature
based on the choice of marking.system
.
If marking.system = "presence"
, a value of 1/-1/0 is assigned
to the features by their presence in the model:
1
is given to features with a coefficient > 0,
-1
is given to features with a coefficient < 0,
0
otherwise.
If marking.system = "coefficient"
, the coefficient of the feature
in the model is used as mark.