Skip to content

Commit

Permalink
fix the bug on the ouput of acc (PaddlePaddle#35)
Browse files Browse the repository at this point in the history
  • Loading branch information
lilong12 authored Feb 14, 2020
1 parent 92608de commit c24ce4a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions plsc/entry.py
Original file line number Diff line number Diff line change
Expand Up @@ -971,15 +971,15 @@ def train(self):
avg_lr = np.mean(local_train_info[1])
speed = nsamples / local_time
if self.calc_train_acc:
logger.info("Pass:{} batch:%d lr:{:.8f} loss:{:.6f} "
logger.info("Pass:{} batch:{} lr:{:.8f} loss:{:.6f} "
"qps:{:.2f} acc1:{:.6f} acc5:{:.6f}".format(
pass_id,
batch_id,
avg_lr,
avg_loss,
speed,
acc1,
acc5))
acc1[0],
acc5[0]))
else:
logger.info("Pass:{} batch:{} lr:{:.8f} loss:{:.6f} "
"qps:{:.2f}".format(pass_id,
Expand Down

0 comments on commit c24ce4a

Please sign in to comment.