I'm not sure about the current state of affairs (this feature was discussed), but you can always get away with the following - terrible - hack
from sklearn.metrics import recall_score, precision_score from sklearn.metrics.scorer import make_scorer recall_accumulator = [] def score_func(y_true, y_pred, **kwargs): recall_accumulator.append(recall_score(y_true, y_pred, **kwargs)) return precision_score(y_true, y_pred, **kwargs) scorer = make_scorer(score_func)
Then use scoring=scorer in your cross validation. You should find the recall values ββin the recall_accumulator array. However, note that this array is global, so make sure you don't write it the way you cannot interpret the results.
source share