I've struggled to deal with categorical variables in Random Forests, for binary classification. Between 8:15 and 9:30 in this instructional video, it talks of a "clever trick".
It says the trick can be found in Elements of Statistical Learning "trick" to deal with categorical variables for binary classification in Random Forests. But, when I read the section on Random Forests, I can't seem to find this "clever trick"!! Can someone hint at where the right section is, or am I missing something obvious? Thank you.
I read the section 9.2.4: Other Issues - Categorical Predictors, thanks. This sentence is unclear to me, however:
"We order the predictor classes according to the proportion falling in outcome class 1."
Does "proportion" mean:
the ratio of 1's in that class to the total number of examples in the region OR the ratio of 1's in that class to the number of examples in that class?
the latter might be thrown of by skewed data. Say there's a class with only one example that happens to be a 1. By the latter definition of "proportion", this would mean that that class would rank first because it's proportion is 1. Which definition of proportion is correct?