Commit f5b83afd authored by Mirza Cutuk's avatar Mirza Cutuk
Browse files

GROUPWORK_minor print fix

parent aee1979f
...@@ -49,7 +49,7 @@ def train_model(model, train_input, train_target, criterion, lr, gamma, mini_bat ...@@ -49,7 +49,7 @@ def train_model(model, train_input, train_target, criterion, lr, gamma, mini_bat
nb_errors = nb_errors + 1 nb_errors = nb_errors + 1
accuracy_e = 1 - nb_errors/train_input.size(0) 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)) print(e, acc_loss/train_input.size(0))
loss_list.append(acc_loss/train_input.size(0)) loss_list.append(acc_loss/train_input.size(0))
acc_list.append(accuracy_e) acc_list.append(accuracy_e)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment