Skip to content

Commit

Permalink
Format code with black
Browse files Browse the repository at this point in the history
  • Loading branch information
jameschapman19 authored and github-actions[bot] committed Sep 19, 2023
1 parent 3066070 commit 904b472
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions cca_zoo/linear/_gradient/_ey.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,15 @@ def loss(self, views, independent_views=None, **kwargs):
}

def get_dataset(self, views: Iterable[np.ndarray], validation_views=None):
dataset = DoubleNumpyDataset(views) if self.batch_size else FullBatchDataset(views)
dataset = (
DoubleNumpyDataset(views) if self.batch_size else FullBatchDataset(views)
)
if validation_views is not None:
val_dataset = DoubleNumpyDataset(validation_views) if self.batch_size else FullBatchDataset(validation_views)
val_dataset = (
DoubleNumpyDataset(validation_views)
if self.batch_size
else FullBatchDataset(validation_views)
)
else:
val_dataset = None
return dataset, val_dataset
Expand Down

0 comments on commit 904b472

Please sign in to comment.