Home | History | Annotate | Download | only in src

Lines Matching defs:weights

185     const double* weights = ensemble->get_subtree_weights()->data.db;
200 double w = weights[i];
221 double w = weights[idx];
229 double w = weights[idx];
249 const double* weights = ensemble->get_subtree_weights()->data.db;
252 const double* rcw0 = weights + n;
263 double w = weights[idx];
278 double w = weights[idx], w2 = w*w;
303 double w = weights[idx];
341 const double* weights = ensemble->get_subtree_weights()->data.db;
357 double w = weights[i];
445 const double* weights = ensemble->get_subtree_weights()->data.db;
450 double L = 0, R = weights[n];
456 double w = weights[idx];
465 double w = weights[idx];
493 const double* weights = ensemble->get_subtree_weights()->data.db;
510 double w = weights[i];
575 const double* weights = ensemble->get_subtree_weights()->data.db;
592 double w = weights[idx];
607 double w = weights[idx];
641 const double* weights = ensemble->get_subtree_weights()->data.db;
661 double w = weights[i];
702 const double* weights = ensemble->get_weights()->data.db;
716 double w = weights[idx]/*priors[responses[i]]*/;
750 double w = weights[idx]/*priors[values[i] > 0]*/;
767 // store summary weights
800 weights = subtree_weights = 0;
843 cvReleaseMat( &weights );
862 orig_response = sum_response = weak_eval = subsample_mask = weights = 0;
979 if( !tree ) // before training the first tree, initialize weights and other parameters
993 cvReleaseMat( &weights );
998 CV_CALL( weights = cvCreateMat( 1, count, CV_64F ));
1020 // make all the initial weights the same.
1021 weights->data.db[i] = w0*p[class_labels[i]];
1079 // now update weights and other parameters for each type of boosting
1093 double w = weights->data.db[i];
1106 double w = weights->data.db[i]*
1109 weights->data.db[i] = w;
1127 double w = weights->data.db[i]*weak_eval->data.db[i];
1129 weights->data.db[i] = w;
1165 weights->data.db[i] = w;
1193 double w = weights->data.db[i] * weak_eval->data.db[i];
1194 weights->data.db[i] = w;
1200 // renormalize weights
1205 weights->data.db[i] *= sumw;
1228 // use weak_eval as temporary buffer for sorted weights
1229 cvCopy( weights, weak_eval );
1233 // as weight trimming occurs immediately after updating the weights,
1249 double w = weights->data.db[i];
1626 return weights;