def prediction_stats(ans, predicts):
    """Calculates Accuracy of prediction against ground truth labels"""
    total_correct = 0
    for i in range(len(predicts)):
        if ans[i] == predicts[i]:
            total_correct = total_correct + 1
    return total_correct / float(len(predicts))