niteshade.defence.ModelDefender
- class niteshade.defence.ModelDefender
Bases:
niteshade.defence.Defender
Abstractclass for defenders that use a strategy that needs access to the model. This class is used mainly in the simulation to check if the current model needs to be sent to the .defend method as an input parameter.
- __init__() None
Methods
__init__
()defend
()Checks if the .defend method is implemented.