(self, dataset: Dataset, cache_size: int = 1000)
| 134 | |
| 135 | class CachedDataset(Dataset): |
| 136 | def __init__(self, dataset: Dataset, cache_size: int = 1000): |
| 137 | self.dataset = dataset |
| 138 | self.cache_size = cache_size |
| 139 | self.cache = {} |
| 140 | |
| 141 | def __len__(self) -> int: |
| 142 | return len(self.dataset) |
nothing calls this directly
no outgoing calls
no test coverage detected