Error: protect(): protection stack overflow while feature extraction

4.4k Views Asked by At

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?

0

There are 0 best solutions below