class_docstr: Tests correctness of the Gompertz bijector.
class_docstr_tok: ["Tests","correctness","of","the","Gompertz","bijector","."]
code: def testBijector(self):
      concentration = 0.3
      rate = 1.0
      bijector = gompertz_cdf.GompertzCDF(
          concentration=concentration, rate=rate, validate_args=True
      )
      self.assertStartsWith(bijector.name, "gompertz")
      x = np.array([[[0.1], [0.5], [1.4], [3.0]]], dtype=np.float32)
      # Gompertz distribution
      gompertz_dist = stats.gompertz(c=concentration, scale=1.0 / rate)
      y = gompertz_dist.cdf(x).astype(np.float32)
      self.assertAllClose(y, self.evaluate(bijector.forward(x)))
      self.assertAllClose(x, self.evaluate(bijector.inverse(y)))
      self.assertAllClose(
          np.squeeze(gompertz_dist.logpdf(x), axis=-1),
          self.evaluate(
              bijector.forward_log_det_jacobian(x, event_ndims=1)
          ),
      )
      self.assertAllClose(
          self.evaluate(
              -bijector.inverse_log_det_jacobian(y, event_ndims=1)
          ),
          self.evaluate(
              bijector.forward_log_det_jacobian(x, event_ndims=1)
          ),
          rtol=1e-4,
          atol=0.0,
      )
  
file_path: probability/tensorflow_probability/python/bijectors/gompertz_cdf_test.py
imports: import numpy
  from scipy import stats
  import tensorflow.compat.v2
  from tensorflow_probability.python.bijectors import bijector_test_util
  from tensorflow_probability.python.bijectors import gompertz_cdf
  from tensorflow_probability.python.internal import test_util
label_desc: Use image node_id 1 for calling the GompertzCDF obj's underlying member method code with example usage: obj.testBijector() without return types