编程语言
首页 > 编程语言> > LGBM算法

LGBM算法

作者:互联网

LGBM

算法概念

Light GBM is a gradient boosting framework that uses tree based learning algorithm。

传统的GBDT算法存在的问题:
LGBM的技术细节

代码实践

from sklearn.metrics import accuracy_score,precision_score,f1_score
import lightgbm as lgbm

lgbm=lgbm.LGBMClassifier(num_leaves=60,learning_rate=0.05,n_estimators=40)
lgbm.fit(x_train,y_train)
y_pre=lgbm.predict(x_validation)

f1=f1_score(y_validation,y_pre,average='micro')
print("the f1 score: %.2f"%f1)

参考:
【1】:https://blog.csdn.net/huacha__/article/details/81057150
【2】:https://blog.csdn.net/HHTNAN/article/details/80068414
【3】:https://medium.com/@pushkarmandot/https-medium-com-pushkarmandot-what-is-lightgbm-how-to-implement-it-how-to-fine-tune-the-parameters-60347819b7fc
【4】:

标签:wise,LGBM,直方图,特征,算法,GBDT,LightGBM
来源: https://blog.csdn.net/aimicm/article/details/89289338