# LightGBM-rs captured real iteration-1 g/h golden (Phase 5, Plan 05-04,
# D-03). regression-l2 (grad=score-label, hess=1) + binary-logloss
# (response=-label*sigmoid/(1+exp(label*sigmoid*score))) iteration-1 g/h
# with boost_from_average=false (score=0), score_t=float, over fixed real
# labels (realistic distribution). The learner grows the SAME tree as C++
# on these g/h (D-07 full tree, missing_type==None — A5).
LEARNER_MASTER_SEED 514219757
GH_CORPUS name=real_gh_regression objective=regression_l2 num_data=20 num_features=2 num_leaves=3
GH_GRAD 3223742054 3221644902 3220386611 3217031168 3214514586 3209481421 3204448256 3192704205 3184315597 1036831949 1050253722 1058642330 1063675494 1067030938 1068708659 1071225242 1073741824 1075000115 1076677837 1078355558
GH_HESS 1065353216 1065353216 1065353216 1065353216 1065353216 1065353216 1065353216 1065353216 1065353216 1065353216 1065353216 1065353216 1065353216 1065353216 1065353216 1065353216 1065353216 1065353216 1065353216 1065353216
GH_FEATURE real=0 num_bin=4 most_freq_bin=0 default_bin=4 min_bin=0 max_bin=3 bins=0;0;0;0;0;1;1;1;1;1;2;2;2;2;2;3;3;3;3;3 upper=4602678819172646912;4609434218613702656;4612811918334230528;4615063718147915776
GH_FEATURE real=1 num_bin=2 most_freq_bin=0 default_bin=2 min_bin=0 max_bin=1 bins=0;1;0;1;0;1;0;1;0;1;0;1;0;1;0;1;0;1;0;1 upper=4602678819172646912;4609434218613702656
# real_gh regression-l2 iter-1 reference tree
COUNTS splits=6 trees=1
PSPLIT split=0 leaf=0 feature=0 num_bin=4 rev=4629300347061523884;4630531893966432895;4629617100154214546 fwd=4629617100154214547;4630531893966432894;4629300347061523880 winner=4630326698697765683
PSPLIT split=1 leaf=0 feature=1 num_bin=2 rev=4611767083372749260 fwd=4611767083372749260 winner=4603381380641502260
PSPLIT split=2 leaf=0 feature=0 num_bin=4 rev=9221120237041090560;9221120237041090560;9221120237041090560 fwd=9221120237041090560 winner=18442240474082181120
PSPLIT split=3 leaf=0 feature=1 num_bin=2 rev=9221120237041090560 fwd=9221120237041090560 winner=18442240474082181120
PSPLIT split=4 leaf=1 feature=0 num_bin=4 rev=4628768453229035912;4628206910702088095;9221120237041090560 fwd=9221120237041090560;4628206910702088095;4628768453229035911 winner=4624230232149180020
PSPLIT split=5 leaf=1 feature=1 num_bin=2 rev=4624303335281295546 fwd=4624303335281295547 winner=4574555767346100224
PTREE name=real_gh_regression num_leaves=3
PT_SPLIT_FEATURE 0 0
PT_THRESHOLD_BITS 4609434218613702656 4612811918334230528
PT_DECISION_TYPE 2 2
PT_SPLIT_GAIN_BITS 1108462797 1097107243
PT_LEFT_CHILD -1 -2
PT_RIGHT_CHILD 1 -3
PT_LEAF_VALUE_BITS 4607542706701756005 13822267832378012467 13835868703193615563
PT_LEAF_WEIGHT_BITS 4621819117588971521 4621819117588971519 4617315517961601025
PT_LEAF_COUNT 5 5 10
PT_INTERNAL_VALUE_BITS 13821907544496406528 13833346687418394214
PT_INTERNAL_COUNT 20 15
ENDTREE
GH_CORPUS name=real_gh_binary objective=binary_logloss num_data=20 num_features=2 num_leaves=2
GH_GRAD 3204448256 3204448256 3204448256 3204448256 3204448256 3204448256 3204448256 3204448256 3204448256 1056964608 3204448256 1056964608 1056964608 1056964608 1056964608 1056964608 1056964608 1056964608 1056964608 1056964608
GH_HESS 1048576000 1048576000 1048576000 1048576000 1048576000 1048576000 1048576000 1048576000 1048576000 1048576000 1048576000 1048576000 1048576000 1048576000 1048576000 1048576000 1048576000 1048576000 1048576000 1048576000
GH_FEATURE real=0 num_bin=4 most_freq_bin=0 default_bin=4 min_bin=0 max_bin=3 bins=0;0;0;0;0;1;1;1;1;1;2;2;2;2;2;3;3;3;3;3 upper=4602678819172646912;4609434218613702656;4612811918334230528;4615063718147915776
GH_FEATURE real=1 num_bin=2 most_freq_bin=0 default_bin=2 min_bin=0 max_bin=1 bins=0;1;0;1;0;1;0;1;0;1;0;1;0;1;0;1;0;1;0;1 upper=4602678819172646912;4609434218613702656
# real_gh binary-logloss iter-1 reference tree
COUNTS splits=2 trees=1
PSPLIT split=0 leaf=0 feature=0 num_bin=4 rev=4619192017806338725;4623395377458551191;4619192017806338726 fwd=4619192017806338725;4623395377458551191;4619192017806338726 winner=4623395377458551191
PSPLIT split=1 leaf=0 feature=1 num_bin=2 rev=4605380978949069207 fwd=4605380978949069207 winner=4605380978949069207
PTREE name=real_gh_binary num_leaves=2
PT_SPLIT_FEATURE 0
PT_THRESHOLD_BITS 4609434218613702656
PT_DECISION_TYPE 2
PT_SPLIT_GAIN_BITS 1095552205
PT_LEFT_CHILD -1
PT_RIGHT_CHILD -2
PT_LEAF_VALUE_BITS 4609884578576439703 13833256615431215511
PT_LEAF_WEIGHT_BITS 4612811918334230528 4612811918334230528
PT_LEAF_COUNT 5 15
PT_INTERNAL_VALUE_BITS 9223372036854775808
PT_INTERNAL_COUNT 20
ENDTREE
