Open flippercy opened 1 year ago
@mn-mikke @hannah-tillman @ledell:
In addition, I am also wondering the reason h2o builds xgboost models this way. Shouldn't all the trees in xgboost models be equal with no weight?
cc @valenad1 @wendycwong
@mn-mikke @valenad1 @wendycwong Any updates team?
In the POJO of h2o xgboost, I noticed that actually there is a coefficient acting as the 'weight' of each tree. For example, the POJO of a model looks like:
class XGBoost_model_R_160218545645_1_Tree_g_0_t_0 { static float score0(double[] data) { return 0.3106898f * ((Double.isNaN(data[141]) || ((float)data[141]) >= 540.0f) .....
class XGBoost_model_R_160218545645_1_Tree_g_0_t_1 { static float score0(double[] data) { return 0.31716052f * ((Double.isNaN(data[141]) || ((float)data[141]) >= 553.0f) ....
However, in the model object itself, I cannot find the "coefficients", 0.3106898 and 0.31716052, anywhere.
Could you add this parameter into the model object? Or if it is already there, could you show me how to find it?
Thank you.