Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
202
class
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
210
class
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