| 80 | } |
| 81 | |
| 82 | double getIntersectionOverUnion(int label) |
| 83 | { |
| 84 | if (getTrueNegatives(label) == |
| 85 | (point_count_t)m_confusionMatrix.topRows(m_dim).sum()) |
| 86 | return 0.0; |
| 87 | else |
| 88 | return (double)getTruePositives(label) / |
| 89 | ((double)getTruePositives(label) + |
| 90 | (double)getFalsePositives(label) + |
| 91 | (double)getFalseNegatives(label)); |
| 92 | } |
| 93 | |
| 94 | double getMeanIntersectionOverUnion() |
| 95 | { |
no test coverage detected