Skip to content

Commit

Permalink
black formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
danielbinschmid committed Aug 16, 2024
1 parent 223fbc4 commit c8f76b5
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions code/models/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ def general_step(self, batch, batch_idx, step: str):
batch_size=batch_len,
on_step=False,
on_epoch=True,
sync_dist=True
sync_dist=True,
)
self.log_accuracies(x_hat, batch.y, batch_len, step)
return loss
Expand All @@ -90,20 +90,15 @@ def log_accuracies(
else:
ValueError("Unknown step Literal")

accuracies = self.accuracies_fn(
acc_fun,
x_hat,
y,
step
)
accuracies = self.accuracies_fn(acc_fun, x_hat, y, step)
for accuracy in accuracies:
self.log(
**accuracy,
prog_bar=True,
on_step=False,
on_epoch=True,
batch_size=batch_len,
sync_dist=True
sync_dist=True,
)

def test_step(self, batch, batch_idx):
Expand Down

0 comments on commit c8f76b5

Please sign in to comment.