def set_params(self, **kwargs) -> None:
        """
        Take in a dictionary of parameters and apply checks before saving them as attributes.
        """
        for key, value in kwargs.items():
            if key in self.params:
                setattr(self, key, value)
        self._check_params()

        Take in a dictionary of parameters and apply checks before saving them as attributes.
        
art/defences/postprocessor/postprocessor.py