Definition at line 43 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(). 00044 { 00045 int pos = 0; 00046 int neg = 0; 00047 int area = 0; 00048 for (int i=0 ; i<table->Size() ; i++) 00049 { 00050 Quid q = table->Get1(i); 00051 if (mAnnotation->IsPositive(q)) 00052 { 00053 ++pos; 00054 } 00055 else //if(mAnnotation->IsNegative(q)) 00056 { 00057 area += pos; 00058 ++neg; 00059 } 00060 } 00061 return (double)area / (double)(pos*neg); 00062 }
Here is the call graph for this function:
|