MCPcopy Create free account
hub / github.com/geekcomputers/Python / __init__

Method __init__

ML/src/python/neuralforge/data/dataset.py:136–139  ·  view source on GitHub ↗
(self, dataset: Dataset, cache_size: int = 1000)

Source from the content-addressed store, hash-verified

134
135class 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)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected