问题
I have a dataframe that has 4755 rows and 27199 columns. It's actually a document term matrix and I'm trying to perform feature selection using the "FSelector" package. Here is some of the code below:
library(FSelector)
weights <- information.gain(Flag~., dtmmatdf)
Each time I do this I get an error
Error: protect(): protection stack overflow
I have a 24GB RAM and the dataframe is about 500Mb in size. So I don't know what the problem is and how do I fix it?
来源:https://stackoverflow.com/questions/32187410/error-protect-protection-stack-overflow-while-feature-extraction