mdl_xgboost | R Documentation |
xgboost::xgboost()
.Simple wrapper for xgboost::xgboost()
with some changes to the
default arguments.
mdl_xgboost(y, X, nrounds = 500, verbose = 0, ...)
y |
The outcome variable. |
X |
The (sparse) feature matrix. |
nrounds |
max number of boosting iterations. |
verbose |
If 0, xgboost will stay silent. If 1, it will print information about performance.
If 2, some additional information will be printed out.
Note that setting |
... |
Additional arguments passed to |
mdl_xgboost
returns an object of S3 class mdl_xgboost
as a simple mask to the return object of xgboost::xgboost()
.
Chen T, Guestrin C (2011). "Xgboost: A Scalable Tree Boosting System." Proceedings of the 22nd ACM SIGKDD International Conference on Knowledge Discovery and Data Mining, 785–794.
xgboost::xgboost()
Other ml_wrapper:
mdl_glmnet()
,
mdl_glm()
,
mdl_ranger()
,
ols()
xgboost_fit <- mdl_xgboost(rnorm(50), matrix(rnorm(150), 50, 3),
nrounds = 1)
class(xgboost_fit)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.