Skip to content

Commit

Permalink
Fix test_1d_feat_tsne
Browse files Browse the repository at this point in the history
  • Loading branch information
LukasHedegaard committed Apr 17, 2023
1 parent 6594eb8 commit adcc7ac
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions tests/dummy_dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,21 +137,21 @@ def __init__(self, hparams):
self.classes = ["fee", "fei"]

self._train_dataloader = DataLoader(
OverOneDataset(self.input_shape, num_samples=65),
OverOneDataset(self.input_shape, num_samples=60),
batch_size=hparams.batch_size,
num_workers=num_workers,
shuffle=True,
pin_memory=num_workers > 1,
)
self._val_dataloader = DataLoader(
OverOneDataset(self.input_shape, num_samples=4),
OverOneDataset(self.input_shape, num_samples=30),
batch_size=hparams.batch_size,
num_workers=num_workers,
shuffle=False,
pin_memory=num_workers > 1,
)
self._test_dataloader = DataLoader(
OverOneDataset(self.input_shape, num_samples=10),
OverOneDataset(self.input_shape, num_samples=30),
batch_size=hparams.batch_size,
num_workers=num_workers,
shuffle=False,
Expand Down
2 changes: 1 addition & 1 deletion tests/test_feature_visualisation.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ def test_2d_feat_pca(self, caplog, main_and_args: Tuple[Main, AttributeDict]):
assert is_nonempty_file(d / "features" / "test" / "conv_pca.npy")
assert is_nonempty_file(d / "figures" / "test" / "conv_pca.png")

def test_1d_feat_tse(self, caplog, main_and_args: Tuple[Main, AttributeDict]):
def test_1d_feat_tsne(self, caplog, main_and_args: Tuple[Main, AttributeDict]):
m, args = main_and_args
args.test = True
args.extract_features_after_layer = "lin"
Expand Down

0 comments on commit adcc7ac

Please sign in to comment.