Error: cannot allocate vector of size 614.0 Gb

For discussions related to modeling, machine learning and deep learning. Related packages include caret, This issue came while modelling and running lm code?

Can you tell me the issue

model <- train(admissions ~ ., data = trainData, method = "lm")

Without a reprex it is hard to know what is happening here.

My best guess is that you are including a ID variable as a categorical variable, which is then dummied, leading to a very large matrix that you are unable to allocate. If that is the case, remove that variable from trainData and try again.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.