Skip to main content
. 2020 Oct 26;20(21):6075. doi: 10.3390/s20216075
Algorithm 4. Extreme gradient boosting (XGBoost) algorithm.
Input: I, instance set of current node
Input: d, feature dimension
Gain ← 0
GiIgi,HiIhi
for k = 1 to m do
    GL0,HL0
   for j in sorted (I, by xjk) do
      GLGL+gj,HLHL+hj
      GRGGL,HRHHL
      scoremax(score,GL2HL+λ+GR2HR+λG2H+λ)
   end
end
Output: Split with max score