I'm working on a binary classification using randomForest on a SpatRaster.
The training data includes two binary (0,1) factor variables, one of which is the target of the classification.
Once I train the RF model (cls.model) and check the variable importance, I get that the variable's name is modified from comp_cat_cl to comp_cat_cl1:
I'm working on a binary classification using
randomForest
on aSpatRaster
. The training data includes two binary (0,1) factor variables, one of which is the target of the classification. Once I train the RF model (cls.model
) and check the variable importance, I get that the variable's name is modified fromcomp_cat_cl
tocomp_cat_cl1
:This weird behaviour disappears if I run directly fom
randomForest
, I get:here the data test_data.txt