class_docstr: A CoreSaliency class that computes saliency masks using the XRAI method.
class_docstr_tok: ["A","CoreSaliency","class","that","computes","saliency","masks","using","the","XRAI","method","."]
code: def __init__(self):
      super(XRAI, self).__init__()
      # Initialize integrated gradients.
      self._integrated_gradients = IntegratedGradients()
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import logging
  from .base import CoreSaliency
  from .integrated_gradients import IntegratedGradients
  import numpy
  from skimage import segmentation
  from skimage.morphology import dilation
  from skimage.morphology import disk
  from skimage.transform import resize
label_desc: Use image node_id 1 to create a new XRAI object from inherited base classes: CoreSaliency with example: obj = XRAI()