Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Richard Vogl
piano_transcription
Commits
c2b51ef1
Commit
c2b51ef1
authored
Jun 15, 2018
by
Richard Vogl
Browse files
model changes
parent
672f46f3
Changes
1
Hide whitespace changes
Inline
Side-by-side
piano_transcription/train_model.py
View file @
c2b51ef1
...
...
@@ -95,7 +95,7 @@ def run(model, model_name, learn_rate, batch_size, split, k_samples):
start_time
=
time
.
time
()
for
batch_nr
,
f_ins
in
enumerate
(
train_batch_iterator
):
cur_loss
=
train_fn
(
*
f_ins
)[
0
]
train_loss_sum
+=
cur_loss
[
0
]
train_loss_sum
+=
cur_loss
train_batches
+=
1
tr_loss
=
train_loss_sum
/
train_batches
...
...
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