fixed priors usage in ertrees

This commit is contained in:
Maria Dimashova 2011-07-24 18:15:53 +00:00
parent d8417af086
commit 221422467e

View File

@ -954,7 +954,7 @@ CvDTreeSplit* CvForestERTree::find_split_ord_class( CvDTreeNode* node, int vi, f
int r = responses[si]; int r = responses[si];
float val = values[si]; float val = values[si];
int m = missing[si]; int m = missing[si];
double p = priors[si]; double p = priors[r];
if (m) continue; if (m) continue;
if ( val < split_val ) if ( val < split_val )
{ {