MCPcopy Create free account
hub / github.com/THUYimingLi/BackdoorBox / ModifyTarget

Class ModifyTarget

core/attacks/LabelConsistent.py:209–214  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

207
208
209class ModifyTarget:
210 def __init__(self, y_target):
211 self.y_target = y_target
212
213 def __call__(self, y_target):
214 return self.y_target
215
216
217class PoisonedDatasetFolder(DatasetFolder):

Callers 3

__init__Method · 0.70
__init__Method · 0.70
__init__Method · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected