def accuracy(scores, y):
    y_pred = scores.max(1)[1]
    return (y_pred == y).float().mean()


wiki = {'accuracy': accuracy}

93e249912b3ba3abde79abc517959206ce289f16
<mask token>

def accuracy(scores, y):
    y_pred = scores.max(1)[1]
    return (y_pred == y).float().mean()


<mask token>

def accuracy(scores, y):
    y_pred = scores.max(1)[1]
    return (y_pred == y).float().mean()


wiki = {'accuracy': accuracy}
