Merge pull request #11171 from codingforfun:fix_11143

This commit is contained in:
Vadim Pisarevsky 2018-03-28 12:47:34 +00:00
commit 284e5231c5

View File

@ -632,6 +632,7 @@ void DTreesImpl::calcValue( int nidx, const vector<int>& _sidx )
}
node->node_risk = sum2 - (sum/sumw)*sum;
node->node_risk /= sumw;
node->value = sum/sumw;
}
}