Spaces:
Runtime error
Runtime error
Update print
Browse files
train.py
CHANGED
@@ -26,7 +26,7 @@ def train(model, train_dataloader, loss_fn, optimizer, device, epochs, test_data
|
|
26 |
testing_loss = []
|
27 |
|
28 |
for i in range(epochs):
|
29 |
-
print(f"Epoch {i + 1}")
|
30 |
|
31 |
# train model
|
32 |
train_epoch_loss, train_epoch_acc = train_epoch(model, train_dataloader, loss_fn, optimizer, device)
|
|
|
26 |
testing_loss = []
|
27 |
|
28 |
for i in range(epochs):
|
29 |
+
print(f"Epoch {i + 1}/{epochs}")
|
30 |
|
31 |
# train model
|
32 |
train_epoch_loss, train_epoch_acc = train_epoch(model, train_dataloader, loss_fn, optimizer, device)
|