View source: R/regression_functions.R
fit_xgboost | R Documentation |
Fit pre-tuned XGBoost regression for use in simulations.
fit_xgboost(X, y, params, derivative = FALSE)
X |
matrix of covariates. |
y |
vector of responses. |
params |
XGBoost hyperparameters. |
derivative |
logical determining if numerical difference derivative estimate (wrt the first predictor) should also be returned. |
list containing a function "fit" which takes matrix input of the same width as X, and returns a vector of predictions. Optionally the list also contains a function "deriv_fit" for numerical difference derivative estimates.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.