niteshade.attack.PerturbPointsAttacker

class niteshade.attack.PerturbPointsAttacker(aggressiveness, one_hot=False)

Bases: niteshade.attack.Attacker

Abstract class for attacker that can change the input data.

Parameters
  • aggressiveness (float) – decides how many points to perturb

  • one_hot (bool) – tells if labels are one_hot encoded or not

__init__(aggressiveness, one_hot=False)

Methods

__init__(aggressiveness[, one_hot])

attack()

Abstract attack method