class_docstr: Base class for LIME Scikit-Image wrapper
  
  
  Args:
      target_fn: callable function or class instance
      target_params: dict, parameters to pass to the target_fn
  
  
  'target_params' takes parameters required to instanciate the
      desired Scikit-Image class/model
class_docstr_tok: ["Base","class","for","LIME","Scikit-Image","wrapper","Args",":","target_fn",":","callable","function","or","class","instance","target_params",":","dict",",","parameters","to","pass","to","the","target_fn","'target_params","'","takes","parameters","required","to","instanciate","the","desired","Scikit-Image","class\/model"]
docstr: Filters `target_params` and return those in `fn`'s arguments.
  Args:
      fn : arbitrary function
      override: dict, values to override target_params
  Returns:
      result : dict, dictionary containing variables
      in both target_params and fn's arguments.
docstr_tok: ["Filters","`","target_params","`","and","return","those","in","`","fn","`","'s","arguments",".","Args",":","fn",":","arbitrary","function","override",":","dict",",","values","to","override","target_params","Returns",":","result",":","dict",",","dictionary","containing","variables","in","both","target_params","and","fn","'s","arguments","."]
code: def filter_params(self, fn, override=None):
      """Filters `target_params` and return those in `fn`'s arguments.
      Args:
          fn : arbitrary function
          override: dict, values to override target_params
      Returns:
          result : dict, dictionary containing variables
          in both target_params and fn's arguments.
      """
      override = override or {}
      result = {}
      for name, value in self.target_params.items():
          if has_arg(fn, name):
              result.update({name: value})
      result.update(override)
      return result
  
file_path: lime/lime/wrappers/scikit_image.py
imports: import types
  from lime.utils.generic_utils import has_arg
  from skimage.segmentation import felzenszwalb, slic, quickshift
label_desc: Use image node_id 4 for calling the BaseWrapper obj's underlying member method code with example usage: obj.filter_params(fn, override) and returns: result