Lines Matching full:nsamples
319 nsamples = data->sample_count;
327 CV_CALL(oob_sample_votes = cvCreateMat( nsamples, nclasses, CV_32SC1 ));
336 CV_CALL(oob_responses = cvCreateMat( 2, nsamples, CV_32FC1 ));
341 CV_CALL(sample_idx_mask_for_tree = cvCreateMat( 1, nsamples, CV_8UC1 ));
342 CV_CALL(sample_idx_for_tree = cvCreateMat( 1, nsamples, CV_32SC1 ));
343 CV_CALL(oob_samples_perm_ptr = (float*)cvAlloc( sizeof(float)*nsamples*dims ));
344 CV_CALL(samples_ptr = (float*)cvAlloc( sizeof(float)*nsamples*dims ));
345 CV_CALL(missing_ptr = (uchar*)cvAlloc( sizeof(uchar)*nsamples*dims ));
346 CV_CALL(true_resp_ptr = (float*)cvAlloc( sizeof(float)*nsamples ));
351 CvMat responses = cvMat(1, nsamples, CV_32FC1, true_resp_ptr);
365 for( i = 0; i < nsamples; i++ ) //form sample for creation one tree
367 int idx = cvRandInt( &rng ) % nsamples;
381 for( i = 0; i < nsamples; i++,
433 memcpy( oob_samples_perm_ptr, samples_ptr, dims*nsamples*sizeof(float));
440 for( i = 0; i < nsamples; i++ )
447 i1 = cvRandInt( &rng ) % nsamples;
448 i2 = cvRandInt( &rng ) % nsamples;
461 for( i = 0; i < nsamples; i++,
488 CV_CALL(cvConvertScale( var_importance, var_importance, 1./ntrees/nsamples ));
586 if( ntrees < 1 || !trees || nsamples < 1 )
592 cvWriteInt( fs, "nsamples", nsamples );
632 nsamples = cvReadIntByName( fs, fnode, "nsamples" );
639 if( nclasses < 0 || nsamples <= 0 || nactive_vars < 0 || oob_error < 0 || ntrees <= 0)
640 CV_ERROR( CV_StsParseError, "Some <nclasses>, <nsamples>, <var_count>, "