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

Method __len__

ML/src/python/neuralforge/data/datasets.py:26–27  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

24 self.classes = ['airplane', 'automobile', 'bird', 'cat', 'deer', 'dog', 'frog', 'horse', 'ship', 'truck']
25
26 def __len__(self):
27 return len(self.dataset)
28
29 def __getitem__(self, idx):
30 return self.dataset[idx]

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected