Open GZYZG opened 2 years ago
@tlapusan could this be related to pruning again somehow? in other words, we visualize it correctly but we get the wrong prediction somehow?
@tlapusan could this be related to pruning again somehow? in other words, we visualize it correctly but we get the wrong prediction somehow?
I dont't know how dtreeviz get the leaf score of xgboost booster, could it re related the mechanism of how dtreeviz parse the model?
hi. yeah, no doubt as they started pruning trees, we might have to look at our shadow model.
Hi @GZYZG
@parrt I have to check this, but I do remember that we dont have implemented the weighted tree version for xgboost.
Tudor
The content of
diabetes_reg_squarederror.txt
is:Prediction of model:
For the sampe
x_test[0]
, the leaf index of this sample is[14, 12]
,the sum of leaf score is67.5542221 + 38.2254753 = 105.7796974
, this value is nearly equal to the prediction. But in the tree visualized:As we can see, the target value of sample
x_test[0]
inbooster[0]
is228.43
, but the leaf score is67.5542221
according to the dumped model.I'm confused about this problem, please help me, thanks.