lightgbm的sklearn接口和原生接口参数详细说明及调参指点
Posted wzdly
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了lightgbm的sklearn接口和原生接口参数详细说明及调参指点相关的知识,希望对你有一定的参考价值。
class lightgbm.LGBMClassifier(boosting_type=‘gbdt‘, num_leaves=31, max_depth=-1, learning_rate=0.1, n_estimators=10, max_bin=255, subsample_for_bin=200000, objective=None, min_split_gain=0.0, min_child_weight=0.001, min_child_samples=20, subsample=1.0, subsample_freq=1, colsample_bytree=1.0, reg_alpha=0.0, reg_lambda=0.0, random_state=None, n_jobs=-1, silent=True, **kwargs)
boosting_type:default="gbdt"
"gbdt":Gradient Boosting Decision Tree
"dart":Dropouts meet Multiple Additive Regression Trees
"goss":Gradient-based One-Side Sampling
"rf": Random Forest
num_leaves (int, optional (default=31)):每个基学习器的最大叶子节点
- max_depth (int, optional (default=-1)):每个基学习器的最大深度, -1 means no limit.
以上是关于lightgbm的sklearn接口和原生接口参数详细说明及调参指点的主要内容,如果未能解决你的问题,请参考以下文章
sklearn多分类模型评测(LR, linearSVC, lightgbm)
sklearn库学习------决策树(回归树DecisionTreeRegressor)
如何在 sklearn:: LGBMClassifier() 中为 LightGBM 分类器的 feature_importances_ 中设置“增益”作为特征重要性度量