Create the dataset. This method should be deterministic - if called multiple times it should return the same data. If you need randomness, please use a fixed seed. :param cache_dir: A directory you can use to read/write any cache data.
(self, cache_dir: Path)
| 168 | |
| 169 | @abstractmethod |
| 170 | def create_dataset(self, cache_dir: Path) -> Dataset: |
| 171 | """ |
| 172 | Create the dataset. |
| 173 | |
| 174 | This method should be deterministic - if called multiple times it should return the same |
| 175 | data. If you need randomness, please use a fixed seed. |
| 176 | |
| 177 | :param cache_dir: A directory you can use to read/write any cache data. |
| 178 | """ |
| 179 | |
| 180 | |
| 181 | DATASET_FACTORIES: TaggedRegistry[DatasetFactory, DatasetTag] = TaggedRegistry() |