accuracy property

double get accuracy

Implementation

double get accuracy {
  final total =
      truePositives + falsePositives + trueNegatives + falseNegatives;
  if (total == 0) return 0.0;
  return (truePositives + trueNegatives) / total;
}