niteshade.simulation

Classes and functions for simulating data poisoning attacks and defences against online learning.

Functions

wrap_results(simulators)

Wrap results of different ran simulations.

Classes

Simulator(X, y, model[, attacker, defender, ...])

Class used to simulate data poisoning attacks during online learning.

Exceptions

ArgNotFoundError

Exception to be raised if a key-word argument is missing when calling the .attack()/.defend() methods of the attacker/defender.

ShapeMismatchError

Exception to be raised when there is a shape mismatch between the original episode datapoints/labels and the perturbed/rejected datapoints/labels by the attacker/defender.