MCPcopy Create free account
hub / github.com/Monalissaa/DisenDiff / __getitem__

Method __getitem__

train.py:371–372  ·  view source on GitHub ↗
(self, idx)

Source from the content-addressed store, hash-verified

369 self.datasets = datasets
370
371 def __getitem__(self, idx):
372 return tuple(d[idx] for d in self.datasets)
373
374 def __len__(self):
375 return min(len(d) for d in self.datasets)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected