活跃农民
- 积分
- 484
- 大米
- 颗
- 鳄梨
- 个
- 水井
- 尺
- 蓝莓
- 颗
- 萝卜
- 根
- 小米
- 粒
- 学分
- 个
- 注册时间
- 2013-5-3
- 最后登录
- 1970-1-1
|
01/12/19
关于XGboost和GBDT还需要再一天,可能会有一些理解误差。
XGboost
https://homes.cs.washington.edu/~tqchen/pdf/BoostedTree.pdf
.google и以下全是基于上面的slides
XGboost is not just an algorithm, it is a software or library that offers a distributed gradient boosting models. The model in XGboost is essentially regularized gradient boosting. . check 1point3acres for more.
Key points: .--
1. Add a regularization term to the loss function to reduce overfilling
2. The regularization term include # of leaves, l2 norm of leaf score, kind of equivalent to pruning.
3. Use a function f_t(x) to represent the mapping from an instance to a leaf score in decision tree generated at t iteration. (the loss of this function should be related to information gain???).
4. Gradient boosting finds the function f_t(x) at each iteration of Ensemble, instead of weights/parameters found by gradient descent, to minimize the loss function because the Ensemble model is an additive model of base models f_t(x).
5. Use Taylor expansion to simplify the loss function to quadratic function of f_t(x), the coefficients of f_t(x) and f_t(x)^2 are related to true y and predicted y using f_t-1(x), which are represented as g(y, y_pred_t-1) and h(y, y_pred_t-1) in the slides. Apparently, the optimization depends on g and h.
6. Then a very good question was asked in the slides, also a question from me: “why spending so much efforts to derive the objective, why not just grow trees…”. Check out the slides for answers.
7. The loss/objective function can be further transformed, and g and h can be used to compute a structure score for a tree. The tree is grown according to the structure score as information gain
. 1point 3acres
Procedure:
Compute g and h based on existing Ensemble model f_t-1(x). Any loss function can be customized in g and h
A tree is grown based on Structure score, not Gini index or Entropy?-baidu 1point3acres
A learning rate is used to add the new tree to the existing model.
待解决:
Gradient boosting decision tree (GBDT)
What is the difference?
书中:”此派理论认为Adaboost实质上是基于加性模型以类似牛顿迭代法来优化指数损失函数。受此启发,通过将迭代优化过程替换为其他优化方法,产生了gradientbossting。。。”。
. Waral dи,
Gradient boosting machine (GBM): base learner doesn’t have to be a tree, it can be a linear classifier. |
|