xgboost icon indicating copy to clipboard operation
xgboost copied to clipboard

hessian rol in xgboost

Open BlindApe opened this issue 12 years ago • 3 comments

Hi, I would like you talk us some issues about the rol of hessian in xgboost.

I found it is used for restriction in node cases (the min_child_weight parameter is checked against the sum of hessian). Why?

It is used for computing the node split criteria and I suspect in step learning with eta...

Could you please give an overview of hessian rol in xgboost and the theoric basis / some reference, if any?

Thank you in advance.

BlindApe avatar Nov 24 '14 17:11 BlindApe

Checkout the recent update in https://github.com/tqchen/xgboost Look for learning about the model

tqchen avatar Nov 24 '14 18:11 tqchen

Thank you. I'll read carefully the presentation. But why the restriction in min_child_weight based in H? I think H scale changes from data to data and from objetive function.

BlindApe avatar Nov 24 '14 19:11 BlindApe

It have things to do with how the weight is calculated. In cases where instance have weight, the hessian is multiplied by the weight.

Another reason is that hessian is in the denominator in weight calculation, restricting that helps stabilizing the calculated weights(this is the original reason why old dectree algorithm restrict number of instance).

Things being said, this is not a hard restriction, it is easy to hack the code using other kinds of restricting mechanism such as number of instance.

tqchen avatar Nov 24 '14 19:11 tqchen