Difference between revisions of "Boosting"
Jump to navigation
Jump to search
| (3 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
| − | |||
| − | |||
;Boosting (Vapnik, 1990, p.512) | ;Boosting (Vapnik, 1990, p.512) | ||
# train the first learning machine to solve the pattern recognition problem. | # train the first learning machine to solve the pattern recognition problem. | ||
| Line 9: | Line 7: | ||
===Types of Boosting=== | ===Types of Boosting=== | ||
* [https://syncedreview.com/2017/10/22/tree-boosting-with-xgboost-why-does-xgboost-win-every-machine-learning-competition/ Why Does XGBoost Win Every Machine Learning Contest?] | * [https://syncedreview.com/2017/10/22/tree-boosting-with-xgboost-why-does-xgboost-win-every-machine-learning-competition/ Why Does XGBoost Win Every Machine Learning Contest?] | ||
| − | + | ;Basic Gradient Boosting Algorithm | |
| − | ; | ||
* Data set <math>\mathcal{D}</math> | * Data set <math>\mathcal{D}</math> | ||
* Loss function <math>L</math> | * Loss function <math>L</math> | ||
| Line 19: | Line 16: | ||
# For <math>m=1,2,\dots, M</math>, do: | # For <math>m=1,2,\dots, M</math>, do: | ||
## <math> \hat{g}_m(x_i) = \left [ \dfrac{\partial L(y_i, f(x_i))}{\partial f(x_i)} \right ] </math> | ## <math> \hat{g}_m(x_i) = \left [ \dfrac{\partial L(y_i, f(x_i))}{\partial f(x_i)} \right ] </math> | ||
| − | |||
## Select splits which maximize gain: <math>Gain = \frac{1}{2} \left [ \dfrac{G^2_L}{H_L} + \dfrac{G^2_R}{H_R} - \dfrac{G^2_{jm}}{H_{jm}} \right ]</math> | ## Select splits which maximize gain: <math>Gain = \frac{1}{2} \left [ \dfrac{G^2_L}{H_L} + \dfrac{G^2_R}{H_R} - \dfrac{G^2_{jm}}{H_{jm}} \right ]</math> | ||
## Determine leaf weights: <math>\hat{w}_{jm} = -\frac{G_{jm}}{H_{jm}}</math> | ## Determine leaf weights: <math>\hat{w}_{jm} = -\frac{G_{jm}}{H_{jm}}</math> | ||
## <math> \hat{f}_m(x) = \eta\sum^T_{j=1}\hat{w}_{jm}\,\mathbb{I}(x\in \hat{R}_{jm})</math> | ## <math> \hat{f}_m(x) = \eta\sum^T_{j=1}\hat{w}_{jm}\,\mathbb{I}(x\in \hat{R}_{jm})</math> | ||
## <math> \hat{f}^{(m)}(x) = \hat{f}^{(m-1)}(x) + \hat{f}_m(x) </math> | ## <math> \hat{f}^{(m)}(x) = \hat{f}^{(m-1)}(x) + \hat{f}_m(x) </math> | ||
| − | + | # Output: <math>\hat{f}(x) \equiv \hat{f}^{M}(x) = \sum^M_{m=0}\hat{f}_m(x)</math> | |
Latest revision as of 23:55, 8 March 2021
- Boosting (Vapnik, 1990, p.512)
- train the first learning machine to solve the pattern recognition problem.
- Train a second machin, using a new training set containing 50% of the examples (randomly chosen) correctly classified and 50% of those misclassified by machine 1.
- Train a new model using a training set that chooses examples that machines 1 and 2 disagree on
- Idea of boosting is to combine these 3 classification rules into one (using, e.g., majority vote)
Types of Boosting[edit]
- Basic Gradient Boosting Algorithm
- Data set [math]\displaystyle{ \mathcal{D} }[/math]
- Loss function [math]\displaystyle{ L }[/math]
- Number of iterations, [math]\displaystyle{ M }[/math]
- The learning rate, [math]\displaystyle{ \eta }[/math]
- The number of terminal nodes, [math]\displaystyle{ T }[/math]
- Initialize [math]\displaystyle{ \hat{f}^{(0)}(x) = \hat{f}_0(x) = \hat{\theta}_0 = \underset{\theta}{\arg\min}\sum^n_{i=1}L(y_i, \theta) }[/math]
- For [math]\displaystyle{ m=1,2,\dots, M }[/math], do:
- [math]\displaystyle{ \hat{g}_m(x_i) = \left [ \dfrac{\partial L(y_i, f(x_i))}{\partial f(x_i)} \right ] }[/math]
- Select splits which maximize gain: [math]\displaystyle{ Gain = \frac{1}{2} \left [ \dfrac{G^2_L}{H_L} + \dfrac{G^2_R}{H_R} - \dfrac{G^2_{jm}}{H_{jm}} \right ] }[/math]
- Determine leaf weights: [math]\displaystyle{ \hat{w}_{jm} = -\frac{G_{jm}}{H_{jm}} }[/math]
- [math]\displaystyle{ \hat{f}_m(x) = \eta\sum^T_{j=1}\hat{w}_{jm}\,\mathbb{I}(x\in \hat{R}_{jm}) }[/math]
- [math]\displaystyle{ \hat{f}^{(m)}(x) = \hat{f}^{(m-1)}(x) + \hat{f}_m(x) }[/math]
- Output: [math]\displaystyle{ \hat{f}(x) \equiv \hat{f}^{M}(x) = \sum^M_{m=0}\hat{f}_m(x) }[/math]