Guest User

Untitled

a guest
Mar 19th, 2018
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.57 KB | None | 0 0
  1. # set tunning parameters
  2. > control <- trainControl(method = "cv", number = 5)
  3.  
  4. # random forest model
  5.  
  6. > rf.model <- train(Sales ~ ., data = my.data, method = "parRF", trControl = control, prox = TRUE, allowParallel = TRUE)
  7.  
  8. The session took forever to run, even I used method = "parRF", the parallel implementation of random forest, it still didn't work.
  9.  
  10. When I switched to use randomForest instead, it had the same issues, the session took forever, and never finished.
  11.  
  12. # random forest model
  13. > forest.model <- randomForest(Sales ~ ., data = my.data, mtry = 15, ntree = 1000)
Add Comment
Please, Sign In to add comment