def _score(classifier, x, y, scorers):
    """
    Performs the scores on the classifiers
    Parameters
    ----------
    classifier: :class:`divmachines.classifiers.Classifier`
        An instance of a classifiers class
    x: ndarray
        samples to predict
    y: ndarray
        true target values
    scores: arraylike
        list of callables, each element is a score function
    Returns
    -------
    scores: arraylike
        list of scores
    """
    predictions = classifier.predict(x)

    scores = {}
    for scorer_name, scorer in scorers.items():
        scores[scorer_name] = scorer(predictions, y)
    return scores