This commit is contained in:
tqchen
2014-11-16 11:47:21 -08:00
parent 129fee64f3
commit 5061d55725
2 changed files with 10 additions and 10 deletions

View File

@@ -466,7 +466,7 @@ class QuantileHistMaker: public HistMaker<TStats> {
if (a.size != 0) {
bst_float cpt = a.data[a.size - 1].value;
// this must be bigger than last value in a scale
bst_float last = cpt + fabs(cpt);
bst_float last = cpt + fabs(cpt) + rt_eps;
this->wspace.cut.push_back(last);
}
this->wspace.rptr.push_back(this->wspace.cut.size());