metrics.average_precision_score(y_true, y_score, sample_weight=None)
Compute average precision (AP) from prediction scores
AP summarizes a precision-recall curve as the weighted mean of precisions achieved at each threshold, with the increase in recall from the previous threshold used as the weight:
Parameters: |
|
---|---|
Returns: |
|
Copyright © 2018, alipy developers (BSD 3 License).