MCPcopy Create free account
hub / github.com/TrustAIResearch/MLHospital / SingleTargetTrans

Class SingleTargetTrans

mlh/data_preprocessing/data_loader.py:446–453  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

444
445
446class SingleTargetTrans:
447 def __init__(self, src_label, tar_label):
448 self.src_label = src_label
449 self.tar_label = tar_label
450
451 def __call__(self, y):
452 assert y == self.src_label
453 return self.tar_label
454
455
456class AlltoAllTrans:

Callers 1

prepare_backdoor_attackFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected