aboutsummaryrefslogtreecommitdiff
path: root/swr2_asr/utils/visualization.py
diff options
context:
space:
mode:
authorPherkel2023-09-11 21:52:42 +0200
committerPherkel2023-09-11 21:52:42 +0200
commit58b30927bd870604a4077a8af9ec3cad7b0be21c (patch)
tree7dd492fa8f14ff61c88545448972022ead324c31 /swr2_asr/utils/visualization.py
parent9ca17d8a83369257f4cc42c963e25baf35a28f8f (diff)
changed config to yaml!
Diffstat (limited to 'swr2_asr/utils/visualization.py')
-rw-r--r--swr2_asr/utils/visualization.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/swr2_asr/utils/visualization.py b/swr2_asr/utils/visualization.py
index 80f942a..a55d0d5 100644
--- a/swr2_asr/utils/visualization.py
+++ b/swr2_asr/utils/visualization.py
@@ -6,10 +6,10 @@ import torch
def plot(epochs, path):
"""Plots the losses over the epochs"""
- losses = list()
- test_losses = list()
- cers = list()
- wers = list()
+ losses = []
+ test_losses = []
+ cers = []
+ wers = []
for epoch in range(1, epochs + 1):
current_state = torch.load(path + str(epoch))
losses.append(current_state["loss"])