| lightgbm {lightgbm} | R Documentation |
Simple interface for training an LightGBM model.
lightgbm(data, label = NULL, weight = NULL, params = list(), nrounds = 10, verbose = 1, eval_freq = 1L, early_stopping_rounds = NULL, save_name = "lightgbm.model", init_model = NULL, callbacks = list(), ...)
data |
a |
label |
Vector of labels, used if |
weight |
vector of response values. If not NULL, will set to dataset |
params |
List of parameters |
nrounds |
number of training rounds |
verbose |
verbosity for output, if <= 0, also will disable the print of evaluation during training |
eval_freq |
evaluation output frequency, only effect when verbose > 0 |
early_stopping_rounds |
int Activates early stopping. Requires at least one validation data and one metric If there's more than one, will check all of them except the training data Returns the model with (best_iter + early_stopping_rounds) If early stopping occurs, the model will have 'best_iter' field |
save_name |
File name to use when writing the trained model to disk. Should end in ".model". |
init_model |
path of model file of |
callbacks |
list of callback functions List of callback functions that are applied at each iteration. |
... |
Additional arguments passed to
|