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

Method __getitem__

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

Source from the content-addressed store, hash-verified

27 return len(self.dataset)
28
29 def __getitem__(self, idx):
30 return self.dataset[idx]
31
32class CIFAR100Dataset:
33 def __init__(self, root='./data', train=True, transform=None, download=True):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected