Abdullah-Nazhat commited on
Commit
5dd31ea
·
verified ·
1 Parent(s): 9fb7e5f

Update train.py

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