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

Class ModifyTarget

core/attacks/TUAP.py:202–207  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

200
201
202class ModifyTarget:
203 def __init__(self, y_target):
204 self.y_target = y_target
205
206 def __call__(self, y_target):
207 return self.y_target
208
209
210class 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