MCPcopy Create free account
hub / github.com/CausalLearning/robust-unlearnable-examples / __init__

Method __init__

utils/data.py:34–38  ·  view source on GitHub ↗
(self, x, y, transform=None, fitr=None)

Source from the content-addressed store, hash-verified

32
33class Dataset():
34 def __init__(self, x, y, transform=None, fitr=None):
35 self.x = x
36 self.y = y
37 self.transform = transform
38 self.fitr = fitr
39
40 def __getitem__(self, idx):
41 x, y = self.x[idx], self.y[idx]

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected