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

Method __getitem__

ML/src/python/neuralforge/data/dataset.py:96–97  ·  view source on GitHub ↗
(self, idx: int)

Source from the content-addressed store, hash-verified

94 return len(self.data)
95
96 def __getitem__(self, idx: int) -> Tuple[torch.Tensor, int]:
97 return self.data[idx], self.labels[idx]
98
99class DataLoaderBuilder:
100 def __init__(self, config):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected