class_docstr: Tests correctness of the weibull bijector.
class_docstr_tok: ["Tests","correctness","of","the","weibull","bijector","."]
code: def testBijector(self):
      scale = 5.0
      concentration = 0.3
      bijector = weibull_cdf.WeibullCDF(
          scale=scale, concentration=concentration, validate_args=True
      )
      self.assertStartsWith(bijector.name, "weibull")
      x = np.array(
          [[[0.0], [1.0], [14.0], [20.0], [100.0]]], dtype=np.float32
      )
      # Weibull distribution
      weibull_dist = stats.weibull_min(c=concentration, scale=scale)
      y = weibull_dist.cdf(x).astype(np.float32)
      self.assertAllClose(y, self.evaluate(bijector.forward(x)))
      self.assertAllClose(x, self.evaluate(bijector.inverse(y)))
      self.assertAllClose(
          weibull_dist.logpdf(x),
          self.evaluate(
              bijector.forward_log_det_jacobian(x, event_ndims=0)
          ),
      )
      self.assertAllClose(
          self.evaluate(
              -bijector.inverse_log_det_jacobian(y, event_ndims=0)
          ),
          self.evaluate(
              bijector.forward_log_det_jacobian(x, event_ndims=0)
          ),
          rtol=1e-4,
          atol=0.0,
      )
  
file_path: probability/tensorflow_probability/python/bijectors/weibull_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 weibull_cdf
  from tensorflow_probability.python.internal import test_util
label_desc: Use image node_id 1 for calling the WeibullCDFBijectorTest obj's underlying member method code with example usage: obj.testBijector() without return types