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

Method __getitem__

ML/src/python/neuralforge/data/datasets.py:114–115  ·  view source on GitHub ↗
(self, idx)

Source from the content-addressed store, hash-verified

112 return len(self.dataset)
113
114 def __getitem__(self, idx):
115 return self.dataset[idx]
116
117def get_dataset(name='cifar10', root='./data', train=True, download=True):
118 name = name.lower()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected