gpb_shared_params | R Documentation |
Parameter docs shared by gpb.train
, gpb.cv
, and gpboost
callbacks |
List of callback functions that are applied at each iteration. |
data |
a |
early_stopping_rounds |
int. Activates early stopping. Requires at least one validation data
and one metric. When this parameter is non-null,
training will stop if the evaluation of any metric on any validation set
fails to improve for |
eval |
Evaluation metric to be monitored when doing CV and parameter tuning. This can be a string, function, or list with a mixture of strings and functions.
|
eval_freq |
evaluation output frequency, only effect when verbose > 0 |
valids |
a list of |
record |
Boolean, TRUE will record iteration message to |
colnames |
feature names, if not null, will use this to overwrite the names in dataset |
categorical_feature |
categorical features. This can either be a character vector of feature
names or an integer vector with the indices of the features (e.g.
|
init_model |
path of model file of |
nrounds |
number of boosting iterations (= number of trees). This is the most important tuning parameter for boosting |
obj |
(character) The distribution of the response variable (=label) conditional on fixed and random effects. This only needs to be set when doing independent boosting without random effects / Gaussian processes. |
params |
list of "tuning" parameters. See the parameter documentation for more information. A few key parameters:
|
verbose |
verbosity for output, if <= 0, also will disable the print of evaluation during training |
gp_model |
A |
line_search_step_length |
Boolean. If TRUE, a line search is done to find the optimal step length for every boosting update
(see, e.g., Friedman 2001). This is then multiplied by the |
use_gp_model_for_validation |
Boolean. If TRUE, the |
train_gp_model_cov_pars |
Boolean. If TRUE, the covariance parameters
of the |
"early stopping" refers to stopping the training process if the model's performance on a given validation set does not improve for several consecutive iterations.
If multiple arguments are given to eval
, their order will be preserved. If you enable
early stopping by setting early_stopping_rounds
in params
, by default all
metrics will be considered for early stopping.
If you want to only consider the first metric for early stopping, pass
first_metric_only = TRUE
in params
. Note that if you also specify metric
in params
, that metric will be considered the "first" one. If you omit metric
,
a default metric will be used based on your choice for the parameter obj
(keyword argument)
or objective
(passed into params
).
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.