Thanks a lot for answering.Accuracy is calculated as seperate function,and it is called in train epoch in the following loop:
for batch_idx,(input, target) in enumerate(loader):
output = model(input)
# measure accuracy and record loss
batch_size = target.size(0)
_, pred = output.data.cpu().topk(1, dim=1)
pred = pred.t()
y_pred = model(input)
accuracy=binary_acc(y_pred,target)
Please answer how can I calculate?Thanks in advance!