跳转至

SaigeClassRoc

  • #include <SaigeVisionAPI.h>

单个类别的 ROC 曲线和 AUROC,在训练时的验证过程中计算。

fpr、tpr、threshold 的长度相同(numPoints),但不同类别之间可能不同。对于 SEG 模型,这些是像素级指标。

Public Attributes

Type Name
int classIndex
此 ROC 所属的类别索引,与 SaigeModelInfo::classNames 对应。请注意,没有指标的类别(例如 SEG 的 OK 类别)会被省略,因此索引可能不连续。
float auroc
ROC 曲线下面积。
int numPoints
fpr、tpr、threshold 数组中的点数。
const float * fpr
假阳性率数组,长度为 numPoints。
const float * tpr
真阳性率数组,长度为 numPoints。
const float * threshold
阈值数组,长度为 numPoints。

Public Attributes Documentation

classIndex

此 ROC 所属的类别索引,与 SaigeModelInfo::classNames 对应。请注意,没有指标的类别(例如 SEG 的 OK 类别)会被省略,因此索引可能不连续。

int classIndex;

auroc

ROC 曲线下面积。

float auroc;

numPoints

fpr、tpr、threshold 数组中的点数。

int numPoints;

fpr

假阳性率数组,长度为 numPoints。

const float * fpr;

tpr

真阳性率数组,长度为 numPoints。

const float * tpr;

threshold

阈值数组,长度为 numPoints。

const float * threshold;