当前位置:网站首页>机器学习模型——lightGBM
机器学习模型——lightGBM
2022-07-26 22:37:00 【Ap21ril】
lightGBM
一、lightGBM的前世今生
1.GBDT(Gradient Boosting Decision Tree)
主要思想是利用弱分类器(决策树)迭代训练以得到最优模型,该模型具有训练效果好、不易过拟合等优点。
可以理解为一个集成学习框架。
2.lightGBM(Light Gradient Boosting Machine)
一个实现GBDT算法的框架,支持高效率的并行训练,并且具有更快的训练速度、更低的内存消耗、更好的准确率、支持分布式可以快速处理海量数据等优点。
3.XGBoost
3.1核心思想
首先,对所有特征都按照特征的数值进行预排序。
其次,在遍历分割点的时候用O(#Data)的代价找到一个特征上的最好分割点。
最后,在找到一个特征的最好分割点后,将数据分裂成左右子节点。
XGBoost的核心就是预排序!
3.2优缺点
1)优点:能准确地找到分割点。(因为他是进行遍历的)
2)缺点:
空间消耗大:算法需要保存数据的特征值,还保存了特征排序的结果 ;在遍历每一个分割点的时候,都需要进行分裂增益的计算,消耗的代价大。
二、lightGBM
- 基于Histogram的决策树算法
- 单边梯度采样(GOSS):把梯度小的剔除掉,只用剩下的样本进行 信息增益。
- 互斥特征捆绑(EFB):高纬度的数据性大多都是稀疏的,EFB相当于降维操作。有效避免不必要0值的计算。
- 带深度限制的Leaf-wise的叶子生长策略:在分裂次数相同的情况下,leaf-wise可以降低更多的误差;但是可能会长出比较深的决策树,产生过拟合,但可以通过增加一个最大深度限制来解决。
- 直接支持类别特征
- 支持高效并行
- Cache命中率优化
lightGBM官方文档:https://lightgbm.readthedocs.io/en/latest/
三、使用lightGBM解决信用卡欺诈问题
代码在码云:https://gitee.com/peng-chongle/light-gbm
数据集太大,码云无法上传
数据集百度网盘链接:
链接:https://pan.baidu.com/s/1PR43LgY1L4oaSegLCzmPHw
提取码:rxb5
边栏推荐
- 2022.7.18-----leetcode.749
- Midge paper reading notes
- Training team lpoj round10 d come minion!
- 告别宽表,用 DQL 成就新一代 BI
- Oracle remote connection configuration
- When aw9523b chip is used to drive 16 channel led, the LED is wrongly lit
- 4-4 object lifecycle
- Hcip day 2_ HCIA review comprehensive experiment
- ResNet论文解读及代码实现(pytorch)
- 18. Opening and saving file dialog box usage notes
猜你喜欢

Azure synapse analytics Performance Optimization Guide (3) -- optimize performance using materialized views (Part 2)

NFT display guide: how to display your NFT collection

ES6新特性

The NFT market pattern has not changed. Can okaleido set off a new round of waves?

Skiasharp's WPF self drawn bouncing ball (case version)
![[C language] array](/img/b7/fe090984af689e45cf3492ff8d4c61.png)
[C language] array

C language array
![[C language] classic recursion problem](/img/97/a88626e1a42f3f425396592a77100d.png)
[C language] classic recursion problem

NFT展示指南:如何展示你的NFT藏品

Push to origin/master was rejected error resolution
随机推荐
【C语言】经典的递归问题
Section 6: introduction to cmake grammar
Blue Bridge Cup brush question notes (word analysis)
Design of intelligent humidification controller based on 51 single chip microcomputer
04-传统的Synchronized锁
第7章 课程总结
[C language] array
4-4 object lifecycle
12_ Binding style
Hcip day 2_ HCIA review comprehensive experiment
Typesript generic constraint
13_ conditional rendering
MySQL optimization
分页插件--PageHelper
Oracle remote connection configuration
94. Middle order traversal of binary tree
08 design of intelligent agricultural environmental monitoring system based on ZigBee
Chapter 1 Introduction and use skills of interceptors
NFT display guide: how to display your NFT collection
Question 152: product maximum subarray