MCPcopy Create free account
hub / github.com/dcharatan/flowmap / DummyDataset

Class DummyDataset

flowmap/dataset/data_module_overfit.py:7–17  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5
6
7class DummyDataset(IterableDataset):
8 def __init__(self, limit: int | None = None) -> None:
9 self.limit = limit
10
11 def __iter__(self) -> Iterator:
12 if self.limit:
13 for _ in range(self.limit):
14 yield []
15 else:
16 while True:
17 yield []
18
19
20class DataModuleOverfit(LightningDataModule):

Callers 2

train_dataloaderMethod · 0.85
val_dataloaderMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected