This function marks the features of an object of class
gknn
.
Usage
mark_gknn(object, marking.system = c("presence"))
Arguments
- marking.system
a length-one character vector, indicating a strategy for marking the features.
- 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 forest,
0
otherwise.