This function marks the features of an object of class
randomForest
.
Usage
mark_randomForest(object, marking.system = c("presence", "frequency"))
Arguments
- marking.system
a length-one character vector, indicating a strategy for marking the features. Available options are
"presence"
(default) and"frequency"
- 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 binary value of 1/0 is assigned
to the features by their presence in the model:
1
is given to features that were used in the random forest,
0
otherwise.
If marking.system = "frequency"
, the frequencies that features
appear in trees are used as marks.