Calculate percentage of correct predictions.