class_docstr: Base class for all poison filtering defences.
class_docstr_tok: ["Base","class","for","all","poison","filtering","defences","."]
docstr: Take in a dictionary of parameters and apply attack-specific checks before saving them as attributes.
  
  :param kwargs: A dictionary of defence-specific parameters.
docstr_tok: ["Take","in","a","dictionary","of","parameters","and","apply","attack-specific","checks","before","saving","them","as","attributes",".",":","param","kwargs",":","A","dictionary","of","defence-specific","parameters","."]
code: def set_params(self, **kwargs) -> None:
      """
      Take in a dictionary of parameters and apply attack-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()
  
file_path: adversarial-robustness-toolbox/art/defences/detector/poison/poison_filtering_defence.py
imports: from __future__ import absolute_import, division, print_function, unicode_literals
  import abc
  import sys
  from typing import Any, Dict, List, Tuple, TYPE_CHECKING
  import numpy
label_desc: Use image node_id 4 for calling the PoisonFilteringDefence obj's underlying member method code with example usage: obj.set_params() without return types