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

Method __init__

generate_tap.py:12–14  ·  view source on GitHub ↗
(self, dataset, classes)

Source from the content-addressed store, hash-verified

10
11class TargetedIndexedDataset():
12 def __init__(self, dataset, classes):
13 self.dataset = dataset
14 self.classes = classes
15
16 def __getitem__(self, idx):
17 x, y, ii = self.dataset[idx]

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected