overallAccuracy property

double get overallAccuracy

Implementation

double get overallAccuracy {
  if (entries.isEmpty) return 0.0;
  final totalTP = entries.fold(0, (sum, e) => sum + e.truePositives.length);
  final totalFP = entries.fold(0, (sum, e) => sum + e.falsePositives.length);
  final totalChecks = entries.fold(0, (sum, e) => sum + e.totalChecks);
  final totalCorrect = totalTP + (totalChecks - totalTP - totalFP);
  return totalChecks > 0 ? totalCorrect / totalChecks : 0.0;
}