for key, value in kwargs.items():
if key in self.defence_params:
setattr(self, key, value)
if hasattr(self, "_check_params"):
self._check_params()
def get_params(self) -> Dict[str, Any]:
Returns dictionary of parameters used to run defence.
After Change
for key, value in kwargs.items():
if key in self.defence_params:
setattr(self, key, value)
self._check_params()
def get_params(self) -> Dict[str, Any]:
Returns dictionary of parameters used to run defence.