scxpand.lightgbm.lightgbm_params#
Classes
|
Enumeration of supported LightGBM boosting types. |
|
Parameters for LightGBM model. |
|
Enumeration of supported LightGBM metric types. |
|
Enumeration of supported LightGBM objective types. |
- class scxpand.lightgbm.lightgbm_params.BoostingType(*values)#
Enumeration of supported LightGBM boosting types.
- DART = 'dart'#
- GBDT = 'gbdt'#
- GOSS = 'goss'#
- RF = 'rf'#
- class scxpand.lightgbm.lightgbm_params.LightGBMParams(use_log_transform=True, use_zscore_norm=True, num_leaves=31, max_depth=-1, learning_rate=0.1, n_estimators=100, min_child_samples=20, reg_alpha=0.0, reg_lambda=0.0, random_seed=42, force_col_wise=True, deterministic=True, class_weight='balanced', n_jobs=-1, feature_fraction=1.0, bagging_fraction=1.0, min_split_gain=0.0, min_child_weight=0.001, boosting_type=BoostingType.GBDT, objective=ObjectiveType.BINARY, metric=MetricType.BINARY_LOGLOSS, verbose=-1)#
Parameters for LightGBM model.
Note: When max_depth > 0, num_leaves should be <= 2^max_depth to avoid overfitting.
- classmethod get_model_type()#
Return the model type identifier for this parameter class.
- Return type:
- __init__(use_log_transform=True, use_zscore_norm=True, num_leaves=31, max_depth=-1, learning_rate=0.1, n_estimators=100, min_child_samples=20, reg_alpha=0.0, reg_lambda=0.0, random_seed=42, force_col_wise=True, deterministic=True, class_weight='balanced', n_jobs=-1, feature_fraction=1.0, bagging_fraction=1.0, min_split_gain=0.0, min_child_weight=0.001, boosting_type=BoostingType.GBDT, objective=ObjectiveType.BINARY, metric=MetricType.BINARY_LOGLOSS, verbose=-1)#
-
boosting_type:
BoostingType= 'gbdt'#
-
metric:
MetricType= 'binary_logloss'#
-
objective:
ObjectiveType= 'binary'#