class_docstr: Tests correctness of the Kumaraswamy bijector.
class_docstr_tok: ["Tests","correctness","of","the","Kumaraswamy","bijector","."]
code: def testBijector(self):
      a = 2.0
      b = 0.3
      bijector = kumaraswamy_cdf.KumaraswamyCDF(
          concentration1=a, concentration0=b, validate_args=True
      )
      self.assertStartsWith(bijector.name, "kumaraswamy")
      x = np.array(
          [[[0.1], [0.2], [0.3], [0.4], [0.5]]], dtype=np.float32
      )
      # Kumaraswamy cdf. This is the same as forward(x).
      y = 1.0 - (1.0 - x**a) ** b
      self.assertAllClose(y, self.evaluate(bijector.forward(x)))
      self.assertAllClose(x, self.evaluate(bijector.inverse(y)))
      kumaraswamy_log_pdf = (
          np.log(a)
          + np.log(b)
          + (a - 1) * np.log(x)
          + (b - 1) * np.log1p(-(x**a))
      )
  
      self.assertAllClose(
          np.squeeze(kumaraswamy_log_pdf, axis=-1),
          self.evaluate(
              bijector.forward_log_det_jacobian(x, event_ndims=1)
          ),
      )
      self.assertAllClose(
          self.evaluate(
              -bijector.forward_log_det_jacobian(x, event_ndims=1)
          ),
          self.evaluate(
              bijector.inverse_log_det_jacobian(y, event_ndims=1)
          ),
          rtol=1e-4,
          atol=0.0,
      )
  
file_path: probability/tensorflow_probability/python/bijectors/kumaraswamy_cdf_test.py
imports: import numpy
  import tensorflow.compat.v2
  from tensorflow_probability.python.bijectors import bijector_test_util
  from tensorflow_probability.python.bijectors import kumaraswamy_cdf
  from tensorflow_probability.python.internal import test_util
label_desc: Use image node_id 1 for calling the KumaraswamyTest obj's underlying member method code with example usage: obj.testBijector() without return types