Definition at line 37 of file AreaUnderRocCurve.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, and Impala::Core::Table::Table::Size(). Referenced by Compute(), and ComputeReverse(). 00038 { 00039 int pos = 0; 00040 int neg = 0; 00041 int area = 0; 00042 for(int i=0 ; i<table->Size() ; i++) 00043 { 00044 Quid q = table->Get1(i); 00045 if(mAnnotation->IsPositive(q)) 00046 ++pos; 00047 else //if(mAnnotation->IsNegative(q)) 00048 { 00049 area += pos; 00050 ++neg; 00051 } 00052 } 00053 return (double)area / (double)(pos*neg); 00054 }
Here is the call graph for this function:
|