Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Hertz-Lab
Research
Intelligent Museum
language-identification
Commits
2b59162e
Commit
2b59162e
authored
Jul 21, 2021
by
Paul Bethge
Browse files
add epoch to csv Callback
parent
8ca04555
Changes
1
Show whitespace changes
Inline
Side-by-side
src/utils/training_utils.py
View file @
2b59162e
...
...
@@ -81,8 +81,10 @@ def write_csv(logging_dir, epoch, logs={}):
log_file_writer
=
csv
.
writer
(
log_file
,
delimiter
=
','
)
if
epoch
==
0
:
row
=
list
(
logs
.
keys
())
row
.
insert
(
0
,
'epoch'
)
log_file_writer
.
writerow
(
row
)
row_vals
=
[
round
(
x
,
6
)
for
x
in
list
(
logs
.
values
())]
row_vals
.
insert
(
0
,
epoch
)
log_file_writer
.
writerow
(
row_vals
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment