mirror of
https://github.com/opencv/opencv.git
synced 2026-07-29 07:13:02 +04:00
Merge pull request #11171 from codingforfun:fix_11143
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user