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
Mira Arabi Haddad
DL Mini Projects Group M
Commits
f5b83afd
Commit
f5b83afd
authored
Dec 17, 2021
by
Mirza Cutuk
Browse files
GROUPWORK_minor print fix
parent
aee1979f
Changes
1
Hide whitespace changes
Inline
Side-by-side
p2/train.py
View file @
f5b83afd
...
...
@@ -49,7 +49,7 @@ def train_model(model, train_input, train_target, criterion, lr, gamma, mini_bat
nb_errors
=
nb_errors
+
1
accuracy_e
=
1
-
nb_errors
/
train_input
.
size
(
0
)
print
(
f
'
e
, acc:
{
accuracy_e
}
'
)
print
(
f
'
{
e
}
, acc:
{
accuracy_e
}
'
)
print
(
e
,
acc_loss
/
train_input
.
size
(
0
))
loss_list
.
append
(
acc_loss
/
train_input
.
size
(
0
))
acc_list
.
append
(
accuracy_e
)
...
...
Write
Preview
Supports
Markdown
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