Here's the code to inspect make_scorer
.
def min_recall_precision(y_true, y_pred):
recall = recall_score(y_true, y_pred)
precision = precision_score(y_true, y_pred)
return min(recall, precision)
?make_scorer
scikit metrics: score settings
Here's the code to inspect make_scorer
.
def min_recall_precision(y_true, y_pred):
recall = recall_score(y_true, y_pred)
precision = precision_score(y_true, y_pred)
return min(recall, precision)
?make_scorer