pipe_xgboost | R Documentation |
eXtrem Gradient Boosted models
pipe_xgboost(
df,
predInput = NULL,
responseVars = 1,
caseClass = NULL,
idVars = character(),
weight = "class",
crossValStrategy = c("Kfold", "bootstrap"),
k = 5,
replicates = 10,
crossValRatio = c(train = 0.6, test = 0.2, validate = 0.2),
params = list(),
nrounds = 5,
shap = TRUE,
aggregate_shap = TRUE,
repVi = 5,
summarizePred = TRUE,
scaleDataset = FALSE,
XGBmodel = FALSE,
DALEXexplainer = FALSE,
variableResponse = FALSE,
save_validateset = FALSE,
baseFilenameXDG = NULL,
filenameRasterPred = NULL,
tempdirRaster = NULL,
nCoresRaster = parallel::detectCores()%/%2,
verbose = 0,
...
)
df |
a |
predInput |
a |
responseVars |
response variables as column names or indexes on |
caseClass |
class of the samples used to weight cases. Column names or indexes on |
idVars |
id column names or indexes on |
weight |
Optional array of the same length as |
crossValStrategy |
|
k |
number of data partitions when |
replicates |
number of replicates for |
crossValRatio |
proportion of the dataset used to train, test and validate the model when |
params |
the list of parameters to |
nrounds |
max number of boosting iterations. |
shap |
if |
aggregate_shap |
if |
repVi |
replicates of the permutations to calculate the importance of the variables. 0 to avoid calculating variable importance. |
summarizePred |
if |
scaleDataset |
if |
XGBmodel |
if |
DALEXexplainer |
if |
variableResponse |
if |
save_validateset |
save the validateset (independent data not used for training). |
baseFilenameXDG |
if no missing, save the NN in hdf5 format on this path with iteration appended. |
filenameRasterPred |
if no missing, save the predictions in a RasterBrick to this file. |
tempdirRaster |
path to a directory to save temporal raster files. |
nCoresRaster |
number of cores used for parallelized raster cores. Use half of the available cores by default. |
verbose |
if > 0, print the state. The bigger the more information printed. |
... |
extra parameters for |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.