Calculate accuracy by category