Skip to content

Commit

Permalink
corrected order of valid and train data arguments in DomainDataModule (
Browse files Browse the repository at this point in the history
…#82)

* swap order of valid and train arguments for class DomainDataModule
* also change for GWDataModule

---------

Co-authored-by: bdvllrs <[email protected]>
  • Loading branch information
NicolasKuske and bdvllrs authored Sep 19, 2024
1 parent 7d90ee9 commit 48dc6ca
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/shimmer_basics.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,8 @@ from torch.utils.data import DataLoader, TensorDataset
class DomainDataModule(LightningDataModule):
def __init__(
self,
val_dataset: torch.Tensor,
train_dataset: torch.Tensor,
val_dataset: torch.Tensor,
batch_size: int,
) -> None:
super().__init__()
Expand Down Expand Up @@ -328,8 +328,8 @@ from shimmer import RepeatedDataset
class GWDataModule(LightningDataModule):
def __init__(
self,
val_datasets: dict[frozenset[str], DomainDataset],
train_datasets: dict[frozenset[str], DomainDataset],
val_datasets: dict[frozenset[str], DomainDataset],
batch_size: int,
) -> None:
super().__init__()
Expand Down

0 comments on commit 48dc6ca

Please sign in to comment.