MCPcopy Create free account
hub / github.com/cure-lab/deep-active-learning / DataHandler4

Class DataHandler4

dataset.py:209–220  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

207 return len(self.X)
208
209class DataHandler4(Dataset):
210 def __init__(self, X, Y, transform=None):
211 self.X = X
212 self.Y = Y
213 self.transform = transform
214
215 def __getitem__(self, index):
216 x, y = self.X[index], self.Y[index]
217 return x, y, index
218
219 def __len__(self):
220 return len(self.X)
221
222
223# handler for waal

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected