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 quadratic function with independent partials.
  
  The expected result should be equal to the regular Integrated Gradients
  attribution regardless of the parameters.
docstr_tok: ["Tests","attributions","of","the","quadratic","function","with","independent","partials",".","The","expected","result","should","be","equal","to","the","regular","Integrated","Gradients","attribution","regardless","of","the","parameters","."]
code: def testIndependentQuadratic(self):
      """Tests attributions of the quadratic function with independent partials.
  
      The expected result should be equal to the regular Integrated Gradients
      attribution regardless of the parameters.
      """
      gig = self._create_gig(self._quadratic_indep_test_model)
      mask = gig.GetMask(
          x_value=[3, 3], x_steps=1000, fraction=0.1, max_dist=0.4
      )
      np.testing.assert_allclose(mask, [18.0, 9.0], rtol=0.01)
  
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 9 for calling the GuidedIGTest obj's underlying member method code with example usage: obj.testIndependentQuadratic() without return types