helper.accuracy#

helper.accuracy(output, target, topk=(1,))[源代码]#

Computes the accuracy over the k top predictions for the specified values of k