def _feature_accuracy(feature_stats):
  """Computes accuracy from the supplied counters."""
  return (feature_stats["correct"] / feature_stats["total"] * 100.0
          if feature_stats["total"] != 0.0 else 0.0)