Abdullah-Nazhat commited on
Commit
a044534
·
verified ·
1 Parent(s): 9fe28e7

Update train.py

Browse files
Files changed (1) hide show
  1. train.py +1 -3
train.py CHANGED
@@ -174,9 +174,7 @@ epochs = 100
174
  for epoch in range(epochs):
175
  print(f"Epoch {epoch+1}\n-----------------------------------")
176
  train_loss, train_acc = train(train_dataloader, model, loss_fn, optimizer)
177
- # learning rate scheduler
178
- #if scheduler is not None:
179
- # scheduler.step()
180
  test_loss, test_acc = test(test_dataloader, model, loss_fn)
181
  with open(logname, 'a') as logfile:
182
  logwriter = csv.writer(logfile, delimiter=',')
 
174
  for epoch in range(epochs):
175
  print(f"Epoch {epoch+1}\n-----------------------------------")
176
  train_loss, train_acc = train(train_dataloader, model, loss_fn, optimizer)
177
+
 
 
178
  test_loss, test_acc = test(test_dataloader, model, loss_fn)
179
  with open(logname, 'a') as logfile:
180
  logwriter = csv.writer(logfile, delimiter=',')