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

Class AlltoAllTrans

mlh/data_preprocessing/data_loader.py:456–461  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

454
455
456class AlltoAllTrans:
457 def __init__(self, classes):
458 self.classes = classes
459
460 def __call__(self, y):
461 return (y+1) % self.classes
462
463
464class AlltoSingleTrans:

Callers 1

prepare_backdoor_attackFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected