MCPcopy Create free account
hub / github.com/NineAbyss/ZeroG / __len__

Method __len__

code/utils.py:314–315  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

312 self.data = list(class_samples.values())
313
314 def __len__(self):
315 return len(self.data)
316
317 def __getitem__(self, idx):
318 return self.data[idx], self.labels[idx]

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected