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

Method __len__

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

Source from the content-addressed store, hash-verified

109 self.classes = ['airplane', 'bird', 'car', 'cat', 'deer', 'dog', 'horse', 'monkey', 'ship', 'truck']
110
111 def __len__(self):
112 return len(self.dataset)
113
114 def __getitem__(self, idx):
115 return self.dataset[idx]

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected