def calculate_accuracy(preds,target):
    """
    :param preds: prediction array
    :param label: target array
    :return: accuracy
    """
    assert preds.shape==target.shape
    return (preds==target).sum()/preds.shape[0]