How leave's scores are calculated in this XGBoost trees?

前端 未结 3 697
野性不改
野性不改 2021-01-07 06:34

I am looking at the below image.

Can someone explain how they are calculated? I though it was -1 for an N and +1 for a yes but then I can\'t figure out how the litt

3条回答
  •  [愿得一人]
    2021-01-07 06:53

    The values of leaf elements (aka "scores") - +2, +0.1, -1, +0.9 and -0.9 - were devised by the XGBoost algorithm during training. In this case, the XGBoost model was trained using a dataset where little boys (+2) appear somehow "greater" than little girls (+0.1). If you knew what the response variable was, then you could probably interpret/rationalize those contributions further. Otherwise, just accept those values as they are.

    As for scoring samples, then the first addend is produced by tree1, and the second addend is produced by tree2. For little boys (age < 15, is male == Y, and use computer daily == Y), tree1 yields 2 and tree2 yields 0.9.

提交回复
热议问题