def set_params(self, **kwargs) -> None:
        """
        Take in a dictionary of parameters and apply defence-specific checks before saving them as attributes.

        :param kwargs: A dictionary of defence-specific parameters.
        """
        for key, value in kwargs.items():
            if key in self.defence_params:
                setattr(self, key, value)
        self._check_params()

        Take in a dictionary of parameters and apply defence-specific checks before saving them as attributes.

        :param kwargs: A dictionary of defence-specific parameters.
        
art/defences/detector/evasion/evasion_detector.py