Reimplemented from Impala::Core::Training::Evaluation. Definition at line 31 of file RecallAtN.h. References Impala::Core::Table::TableTem< Col1T, Col2T, Col3T, Col4T, Col5T, Col6T, Col7T, Col8T, Col9T >::Get1(), Impala::Core::Table::AnnotationTable::IsPositive(), Impala::Core::Training::Evaluation::mAnnotation, mN, mTotalRelevance, Impala::Core::Table::Table::Size(), and Impala::Core::Table::Sort(). 00032 { 00033 Sort(table, 2, false); 00034 00035 int positiveCount=0; 00036 for(int i=0 ; i<table->Size() && i<mN ; i++) 00037 { 00038 Quid q = table->Get1(i); 00039 if(mAnnotation->IsPositive(q)) 00040 positiveCount++; 00041 } 00042 double recall = ((double)positiveCount)/((double)mTotalRelevance); 00043 return recall; 00044 }
Here is the call graph for this function:
|