Bagging tree model - R is taking way too long than it should

Hi there,

I am trying to run a bagging tree model command in R. This coding I believe is right as I have seen it everywhere and I don't get an error, but for some reason R is taking so long (I mean hours) for it to run and it does nothing. I have to force close R in order to do anything else, why is this the case? What can I do?

Can you please post a sample of your code?

bagged_trees_model <- randomForest(y =$shares,
x =[ ,-1],
mtry = ncol(train) - 1,
importance = T)

This topic was automatically closed 42 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.