LightGBMHyperparameters
VariantLightGBM gradient boosting. See `setup_LightGBM`.
Properties
max_nroundsinteger≥ 1Maximum number of boosting rounds when tuning nrounds by early stopping.
force_nroundsinteger | null≥ 1Use this many boosting rounds; disables the search for nrounds.
early_stopping_roundsinteger≥ 1Number of rounds without improvement to stop training.
num_leavestunableinteger≥ 1Maximum number of leaves in one tree.
max_depthtunableintegerMaximum tree depth. -1 = no limit.
learning_ratetunablenumber≤ 1> 0Learning rate.
feature_fractiontunablenumber≤ 1> 0Fraction of features sampled per tree.
subsampletunablenumber≤ 1> 0Fraction of cases sampled per tree (bagging fraction).
subsample_freqtunableinteger≥ 1Bagging frequency.
lambda_l1tunablenumber≥ 0L1 regularization.
lambda_l2tunablenumber≥ 0L2 regularization.
max_cat_thresholdtunableinteger≥ 1Maximum number of split points for categorical features.
min_data_per_grouptunableinteger≥ 1Minimum number of cases per categorical group.
linear_treetunablebooleanFit linear models at leaves.
ifwtunablebooleanInverse Frequency Weighting in classification.
objectivestring | nullLightGBM objective. NULL = set from outcome type.
device_typestringCompute device.
one of
"cpu""gpu""cuda"tree_learnerstringTree learner type.
one of
"serial""feature""data""voting"force_col_wisebooleanForce column-wise histogram building (CPU only).
nroundsinteger | null≥ 1Resolved number of boosting rounds. NULL = determined by early stopping during tuning.
best_iternumber | null≥ 0Best iteration found by early stopping.
Relationships
Used by