mirror of
https://github.com/opencv/opencv.git
synced 2024-11-24 19:20:28 +08:00
Merge pull request #11171 from codingforfun:fix_11143
This commit is contained in:
commit
284e5231c5
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user