class_docstr: Tests correctness of the Y = g(X) = (1 + exp(-X))^-1 transformation.
class_docstr_tok: ["Tests","correctness","of","the","Y","=","g","(","X",")","=","(","1","+","exp","(","-X",")",")","^-1","transformation","."]
code: def testBijectiveAndFinite(self):
      x = np.linspace(-100.0, 100.0, 100).astype(np.float32)
      eps = 1e-3
      y = np.linspace(eps, 1.0 - eps, 100).astype(np.float32)
      bijector_test_util.assert_bijective_and_finite(
          sigmoid.Sigmoid(),
          x,
          y,
          eval_func=self.evaluate,
          event_ndims=0,
          atol=0.0,
          rtol=1e-4,
      )
  
imports: from absl.testing import parameterized
  import numpy
  from scipy import special
  import tensorflow.compat.v2
  from tensorflow_probability.python.bijectors import bijector_test_util
  from tensorflow_probability.python.bijectors import chain
  from tensorflow_probability.python.bijectors import scale
  from tensorflow_probability.python.bijectors import shift
  from tensorflow_probability.python.bijectors import sigmoid
  from tensorflow_probability.python.internal import test_util
label_desc: Use image node_id 3 for calling the SigmoidBijectorTest obj's underlying member method code with example usage: obj.testBijectiveAndFinite() without return types