Commit 284e5231 authored by Vadim Pisarevsky's avatar Vadim Pisarevsky

Merge pull request #11171 from codingforfun:fix_11143

parents 6b041c8a 24e2e0d3
...@@ -632,6 +632,7 @@ void DTreesImpl::calcValue( int nidx, const vector<int>& _sidx ) ...@@ -632,6 +632,7 @@ void DTreesImpl::calcValue( int nidx, const vector<int>& _sidx )
} }
node->node_risk = sum2 - (sum/sumw)*sum; node->node_risk = sum2 - (sum/sumw)*sum;
node->node_risk /= sumw;
node->value = sum/sumw; node->value = sum/sumw;
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment