Skip to content

Commit

Permalink
[feat] adding multiclass testing in shapes
Browse files Browse the repository at this point in the history
  • Loading branch information
ctr26 committed Aug 14, 2024
1 parent f994f31 commit d856741
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions bioimage_embed/shapes/tests/test_lightning.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,17 @@ def transform():
)


@pytest.fixture(params=[1, 2, 16])
def classes(request):
return request.param


@pytest.fixture
def dataset(transform):
def dataset(transform, classes):
return FakeData(
size=64,
image_size=(3, 224, 224),
num_classes=2,
num_classes=classes,
transform=transform,
)

Expand Down

0 comments on commit d856741

Please sign in to comment.