Labelflipping Function
Details about the Labelflipping attack method.
def labelflipping(flipped_vectors):
return torch.stack(flipped_vectors).mean(dim=0)
Inputs
flipped_vectors: list - List of vectors to flip labels on.
Outputs
torch.Tensor - The processed Tensor after applying the Labelflipping attack.