Difference between revisions of "Boosting"

From Bitnami MediaWiki
Jump to navigation Jump to search
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
−
* [https://syncedreview.com/2017/10/22/tree-boosting-with-xgboost-why-does-xgboost-win-every-machine-learning-competition/ Article] on Boosting
 
−
 
 
;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 22: Line 20:
 
## <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>
+
# 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)
  1. train the first learning machine to solve the pattern recognition problem.
  2. 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.
  3. 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]
  1. 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]
  2. For [math]\displaystyle{ m=1,2,\dots, M }[/math], do:
    1. [math]\displaystyle{ \hat{g}_m(x_i) = \left [ \dfrac{\partial L(y_i, f(x_i))}{\partial f(x_i)} \right ] }[/math]
    2. 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]
    3. Determine leaf weights: [math]\displaystyle{ \hat{w}_{jm} = -\frac{G_{jm}}{H_{jm}} }[/math]
    4. [math]\displaystyle{ \hat{f}_m(x) = \eta\sum^T_{j=1}\hat{w}_{jm}\,\mathbb{I}(x\in \hat{R}_{jm}) }[/math]
    5. [math]\displaystyle{ \hat{f}^{(m)}(x) = \hat{f}^{(m-1)}(x) + \hat{f}_m(x) }[/math]
  3. Output: [math]\displaystyle{ \hat{f}(x) \equiv \hat{f}^{M}(x) = \sum^M_{m=0}\hat{f}_m(x) }[/math]