class_docstr: Tests the correctness of the CorrelationCholesky bijector.
class_docstr_tok: ["Tests","the","correctness","of","the","CorrelationCholesky","bijector","."]
code: def testBijector(self):
      x = np.float32(np.array([7.0, -5.0, 5.0, 1.0, 2.0, -2.0]))
      y = np.float32(
          np.array(
              [
                  [1.0, 0.0, 0.0, 0.0],
                  [0.707107, 0.707107, 0.0, 0.0],
                  [-0.666667, 0.666667, 0.333333, 0.0],
                  [0.5, -0.5, 0.7, 0.1],
              ]
          )
      )
  
      b = correlation_cholesky.CorrelationCholesky()
  
      y_ = self.evaluate(b.forward(x))
      self.assertAllClose(y, y_, atol=1e-5, rtol=1e-5)
  
      x_ = self.evaluate(b.inverse(y))
      self.assertAllClose(x, x_, atol=1e-5, rtol=1e-5)
  
      expected_fldj = -0.5 * np.sum([3, 4, 5] * np.log([2, 9, 100]))
  
      fldj = self.evaluate(b.forward_log_det_jacobian(x, event_ndims=1))
      self.assertAllClose(expected_fldj, fldj)
  
      ildj = self.evaluate(b.inverse_log_det_jacobian(y, event_ndims=2))
      self.assertAllClose(-expected_fldj, ildj)
  
imports: import itertools
  from absl.testing import parameterized
  import numpy
  import tensorflow.compat.v2
  from tensorflow_probability.python.bijectors import bijector
  from tensorflow_probability.python.bijectors import bijector_test_util
  from tensorflow_probability.python.bijectors import correlation_cholesky
  from tensorflow_probability.python.bijectors import fill_triangular
  from tensorflow_probability.python.distributions import beta
  from tensorflow_probability.python.distributions import cholesky_lkj
  from tensorflow_probability.python.distributions import lkj
  from tensorflow_probability.python.distributions.internal import statistical_testing
  from tensorflow_probability.python.internal import tensorshape_util
  from tensorflow_probability.python.internal import test_util
  from tensorflow_probability.python.mcmc import hmc
  from tensorflow_probability.python.mcmc import sample
  from tensorflow_probability.python.mcmc import transformed_kernel
label_desc: Use image node_id 1 for calling the CorrelationCholeskyBijectorTest obj's underlying member method code with example usage: obj.testBijector() without return types