Skip to content

Commit

Permalink
Ruff linting
Browse files Browse the repository at this point in the history
  • Loading branch information
dherrera1911 committed Dec 11, 2024
1 parent 2254700 commit 563b2c2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
1 change: 0 additions & 1 deletion tests/test_plotting.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
import torch

import sqfa

from make_examples import rotated_classes_dataset

MAX_EPOCHS = 100
Expand Down
5 changes: 2 additions & 3 deletions tests/test_training.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@
import torch

import sqfa

from make_examples import rotated_classes_dataset

MAX_EPOCHS = 50
MAX_TRIES = 3
torch.manual_seed(0)


Expand Down Expand Up @@ -68,9 +68,8 @@ def test_training_method(make_dataset, feature_noise, n_filters, pairwise):
return
else:
n_tries = 0
max_tries = 3
loss_decreased = False
while n_tries < 3 and not loss_decreased:
while n_tries < MAX_TRIES and not loss_decreased:
loss, time = model.fit(
data_scatters=covariances,
lr=0.1,
Expand Down

0 comments on commit 563b2c2

Please sign in to comment.