tune_xgbp | R Documentation |
tune_xgbp
tunes the parameters of XGBoost to improve first stage predicitons
and avid overfitting in the XGBP.
tune_xgbp( survey, ..., dep_var = NULL, nrounds = 100, nthread = 1, n_iter = 25, seed = NULL )
survey |
A |
... |
Individual and group level covariates used in the poststratification. All
variables must be included in the |
dep_var |
Dependent variable. Must be |
nrounds |
Number of trees (rounds) used in to train the model. Defaults to |
nthread |
Number of htreads used in the computation. Defaults to |
n_iter |
When |
seed |
A seed for replication. Defaults to |
A list with two elements:
A list with the best parameters selected during gridsearch
A vector with the optimal number of trees selected during gridsearch
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.