niteshade.attack

Data poisoning attack strategy classes following a logical hierarchy.

Classes

AddLabeledPointsAttacker(aggressiveness, label)

Adds points with a specified label.

AddPointsAttacker(aggressiveness[, one_hot])

Abstract class for attackers that add points to the batch of data.

Attacker()

General abstract Attacker class

BrewPoison(target[, M, aggressiveness, ...])

Perturb points while minimising detectability.

ChangeLabelAttacker(aggressiveness[, one_hot])

Abstract class for attacker that can change labels.

LabelFlipperAttacker(aggressiveness, label_flips)

Flip labels based on a dictionary of information.

PerturbPointsAttacker(aggressiveness[, one_hot])

Abstract class for attacker that can change the input data.

RandomAttacker(aggressiveness[, one_hot])

Randomly change the labels of points.