Lines Matching refs:ntrees
188 ntrees = 0;
201 for( k = 0; k < ntrees; k++ )
210 ntrees = 0;
356 ntrees = 0;
357 while( ntrees < max_ntrees )
372 trees[ntrees] = new CvForestTree();
373 tree = trees[ntrees];
483 ntrees++;
488 CV_CALL(cvConvertScale( var_importance, var_importance, 1./ntrees/nsamples ));
524 for( i = 0; i < ntrees; i++ )
527 result = result/(float)ntrees;
549 for( k = 0; k < ntrees; k++ )
567 for( k = 0; k < ntrees; k++ )
569 result /= (double)ntrees;
586 if( ntrees < 1 || !trees || nsamples < 1 )
599 cvWriteInt( fs, "ntrees", ntrees );
605 for( k = 0; k < ntrees; k++ )
635 ntrees = cvReadIntByName( fs, fnode, "ntrees", -1 );
639 if( nclasses < 0 || nsamples <= 0 || nactive_vars < 0 || oob_error < 0 || ntrees <= 0)
641 "<nactive_vars>, <oob_error>, <ntrees> of tags are missing" );
645 trees = (CvForestTree**)cvAlloc( sizeof(trees[0])*ntrees );
646 memset( trees, 0, sizeof(trees[0])*ntrees );
657 if( reader.seq->total != ntrees )
659 "<ntrees> is not equal to the number of trees saved in file" );
661 for( k = 0; k < ntrees; k++ )
685 return ntrees;
690 return (unsigned)i < (unsigned)ntrees ? trees[i] : 0;