mindspore2022/docs/api/api_python/nn/mindspore.nn.auc.rst

17 lines
762 B
ReStructuredText
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

mindspore.nn.auc
================
.. py:class:: mindspore.nn.auc(x, y, reorder=False)
使用梯形法则计算曲线下面积AUCArea Under the CurveAUC。这是一个一般函数给定曲线上的点
用于计算ROC (Receiver Operating Curve, ROC) 曲线下的面积。
**参数:**
- **x** (Union[np.array, list]) - 从ROC曲线False Positive Rate, FPR来看np.array具有假阳性率。如果是多类则为np.array列表。Shape为 :math:`(N)`
- **y** (Union[np.array, list]) - 从ROC曲线True Positive Rate, TPR来看np.array具有假阳性率。如果是多类则为np.array列表。Shape为 :math:`(N)`
**返回:**
float曲线下面积的值AUC。