Shortcuts

Accuracy

class mmcls.models.Accuracy(topk=(1,))[source]
forward(pred, target)[source]

Forward function to calculate accuracy.

Parameters
Returns

The accuracies under different topk criterions.

Return type

list[torch.Tensor]

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

Free document hosting provided by Read the Docs.