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

Method __len__

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

Source from the content-addressed store, hash-verified

66 self.classes = [str(i) for i in range(10)]
67
68 def __len__(self):
69 return len(self.dataset)
70
71 def __getitem__(self, idx):
72 return self.dataset[idx]

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected