Skip to content

Instantly share code, notes, and snippets.

@earino
Created May 15, 2017 19:17
Show Gist options
  • Save earino/5daca8e4ef12a55df9caaef7457718fe to your computer and use it in GitHub Desktop.
Save earino/5daca8e4ef12a55df9caaef7457718fe to your computer and use it in GitHub Desktop.
> system.time({ caret.model <- train(carat ~ depth + table + price + x + y + z, data=diamonds, distribution="gaussian", method="gbm", trControl = trainControl(method="none", number=1), tuneLength=1, verbose=FALSE)})
user system elapsed
1.108 0.060 1.188
> system.time({ model <- gbm(carat ~ depth + table + price + x + y + z, data=diamonds, distribution="gaussian")})
user system elapsed
0.818 0.026 0.856
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment