sklearn.metrics.average_precision_score()

sklearn.metrics.average_precision_score

sklearn.metrics.average_precision_score(y_true, y_score, average='macro', sample_weight=None) [source]

Compute average precision (AP) from prediction scores

This score corresponds to the area under the precision-recall curve.

Note: this implementation is restricted to the binary classification task or multilabel classification task.

Read more in the User Guide.

登录查看完整内容