Shortcuts

mmcls.core.mAP

mmcls.core.mAP(pred, target)[源代码]

Calculate the mean average precision with respect of classes.

参数
  • pred (torch.Tensor | np.ndarray) – The model prediction with shape (N, C), where C is the number of classes.

  • target (torch.Tensor | np.ndarray) – The target of each prediction with shape (N, C), where C is the number of classes. 1 stands for positive examples, 0 stands for negative examples and -1 stands for difficult examples.

返回

A single float as mAP value.

返回类型

float

Read the Docs v: latest
Versions
master
latest
1.x
dev-1.x
Downloads
pdf
html
epub
On Read the Docs
Project Home
Builds

Free document hosting provided by Read the Docs.