This commit is contained in:
leo 2019-09-05 16:42:24 +08:00
parent 43038aed11
commit 8151bf5237
2 changed files with 2 additions and 1 deletions

View File

@ -66,7 +66,7 @@ class Config(object):
batch_size = 64
train_log = True
log_interval = 10
show_plot = False
show_plot = True
f1_norm = ['macro', 'micro']

View File

@ -36,6 +36,7 @@ def train(epoch, device, dataloader, model, optimizer, criterion, config):
# plot
if config.show_plot:
plt.plot(total_loss)
plt.title('loss')
plt.show()