I'm having trouble understanding the by class columns in the importance function inside of randomForest.
My data set has two classes, "Current" and "Departed". To predict those classes,
I first create a random forest model:
fit <- randomForest(IsDeparted ~ ..., df_train),
Then I run the importance function:
importance(fit)
Now I get a snippet of results like this, importance measure in four columns: "Current" "Departed" "MDA" "GiniDecrease"
Could someone explain how to interpret the first two class columns? Is it the mean decrease in accuracy of predicting one particular class after permuting values of that particular variable? And if so, does that mean I should focus on those columns rather than the MDA column when doing feature selection if I am more interested in the model's performance for one particular class?
