class_docstr: To run: "python -m unittest saliency.tf1.guided_ig_test" from the top-level directory.
class_docstr_tok: ["To","run",":","``","python","-m","unittest","saliency.tf1.guided_ig_test","''","from","the","top-level","directory","."]
docstr: Tests attributions of the linear function with default baseline.
  
  The expected result should be equal to the regular Integrated Gradients
  attribution.
docstr_tok: ["Tests","attributions","of","the","linear","function","with","default","baseline",".","The","expected","result","should","be","equal","to","the","regular","Integrated","Gradients","attribution","."]
code: def testLinearWithoutBaseline(self):
      """Tests attributions of the linear function with default baseline.
  
      The expected result should be equal to the regular Integrated Gradients
      attribution.
      """
      gig = self._create_gig(self._linear_test_model)
      mask = gig.GetMask(
          x_value=[10, 5], x_steps=10, fraction=0.1, max_dist=0.5
      )
      np.testing.assert_allclose(mask, [20.0, 5.0])
  
file_path: saliency/saliency/tf1/guided_ig_test.py
imports: import unittest
  from .None import guided_ig
  import numpy
  import tensorflow.compat.v1
label_desc: Use image node_id 8 for calling the GuidedIGTest obj's underlying member method code with example usage: obj.testLinearWithoutBaseline() without return types