Definition at line 38 of file mainRandomForest.cpp. References Impala::Core::Table::AnnotationTable::GetPositive(), ILOG_ERROR, ILOG_INFO, ILOG_VAR, ILOG_WARN, main(), Impala::Core::DataFactory::MakeAnnotation(), Impala::Core::DataFactory::MakeConceptList(), PickRandomSamples(), and Impala::Core::Table::Table::Size(). Referenced by RandomForest(). 00039 { 00040 ILOG_VAR(main); 00041 std::vector<String> concepts = factory->MakeConceptList(); 00042 if(concepts.size() == 0) 00043 ILOG_ERROR("couldn't open concept list"); 00044 nrClasses = concepts.size(); 00045 for(int i=0 ; i<nrClasses ; ++i) 00046 { 00047 Table::AnnotationTable* anno = factory->MakeAnnotation(concepts[i]); 00048 Table::QuidTable* pos = anno->GetPositive(); 00049 ILOG_INFO(pos->Size() << " positive annotations"); 00050 if(pos->Size() < cNrImages) 00051 { 00052 ILOG_WARN("not enough positive examples for concept "<< concepts[i]); 00053 continue; 00054 } 00055 PickRandomSamples(quids, pos, i); 00056 } 00057 // check size of quids for validity? 00058 ILOG_INFO(quids.Size() << " quids found"); 00059 }
Here is the call graph for this function:
|