Skip to content

Commit

Permalink
Merge pull request #812 from samuel-liyi/master
Browse files Browse the repository at this point in the history
fsplit value
  • Loading branch information
tqchen committed Feb 8, 2016
2 parents 5345990 + d3540aa commit 72961d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tree/updater_colmaker.cc
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,7 @@ class ColMaker: public TreeUpdater {
float fsplit;
if (tid != 0) {
if (std::abs(stemp[tid - 1][nid].last_fvalue - e.first_fvalue) > rt_2eps) {
fsplit = (stemp[tid - 1][nid].last_fvalue - e.first_fvalue) * 0.5f;
fsplit = (stemp[tid - 1][nid].last_fvalue + e.first_fvalue) * 0.5f;
} else {
continue;
}
Expand Down

0 comments on commit 72961d9

Please sign in to comment.