LightGBMHyperparameters
VariantLightGBM gradient boosting. See `setup_LightGBM`.
Properties
max_nroundsintegerdefault1000≥ 1Maximum number of boosting rounds when tuning nrounds by early stopping.
force_nroundsinteger | nulldefaultnull≥ 1Use this many boosting rounds; disables the search for nrounds.
early_stopping_roundsintegerdefault10≥ 1Number of rounds without improvement to stop training.
num_leavestunableintegerdefault8≥ 1Maximum number of leaves in one tree.
max_depthtunableintegerdefault-1Maximum tree depth. -1 = no limit.
learning_ratetunablenumberdefault0.01≤ 1> 0Learning rate.
feature_fractiontunablenumberdefault1≤ 1> 0Fraction of features sampled per tree.
subsampletunablenumberdefault1≤ 1> 0Fraction of cases sampled per tree (bagging fraction).
subsample_freqtunableintegerdefault1≥ 1Bagging frequency.
lambda_l1tunablenumberdefault0≥ 0L1 regularization.
lambda_l2tunablenumberdefault0≥ 0L2 regularization.
max_cat_thresholdtunableintegerdefault32≥ 1Maximum number of split points for categorical features.
min_data_per_grouptunableintegerdefault32≥ 1Minimum number of cases per categorical group.
linear_treetunablebooleandefaultfalseFit linear models at leaves.
ifwtunablebooleandefaultfalseInverse Frequency Weighting in classification.
objectivestring | nulldefaultnullLightGBM objective. NULL = set from outcome type.
device_typestringdefault"cpu"Compute device.
one of
"cpu""gpu""cuda"tree_learnerstringdefault"serial"Tree learner type.
one of
"serial""feature""data""voting"force_col_wisebooleandefaulttrueForce column-wise histogram building (CPU only).
Relationships
Used by