Skip to content

Commit

Permalink
fixed test accuracy tuple
Browse files Browse the repository at this point in the history
  • Loading branch information
LostOxygen committed Jul 30, 2023
1 parent f7d6925 commit bfa60a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kernel_eval/train.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ def train_model(model: nn.Module, train_dataloader: IterableDataset,
train_losses.append(sum(epoch_loss) / len(epoch_loss))

# for every epoch use the validation set to check if this is the best model yet
validation_acc = test_model(model, validation_dataloader, device)
validation_acc = test_model(model, validation_dataloader, device)[0]
wandb.log({"validation_acc": validation_acc})

if validation_acc > best_validation_acc:
Expand Down

0 comments on commit bfa60a3

Please sign in to comment.