def testScalarCongruency(self): with self.test_session(): bijector = tfd.bijectors.Invert(tfd.bijectors.Exp()) assert_scalar_congruency(bijector, lower_x=1e-3, upper_x=1.5, rtol=0.05)
def testScalarCongruency(self): with self.test_session(): chain = tfb.Chain((tfb.Exp(), tfb.Softplus())) assert_scalar_congruency(chain, lower_x=1e-3, upper_x=1.5, rtol=0.05)
def testScalarCongruency(self): with self.cached_session(): chain = Chain((Exp(), Softplus())) assert_scalar_congruency(chain, lower_x=1e-3, upper_x=1.5, rtol=0.05)
def testScalarCongruency(self): with self.test_session(): bijector = bijectors.Square(validate_args=True) assert_scalar_congruency(bijector, lower_x=1e-3, upper_x=1.5, rtol=0.05)
def testScalarCongruency(self): with self.test_session(): assert_scalar_congruency( tfb.Weibull(scale=20., concentration=0.3), lower_x=1., upper_x=100., rtol=0.02)
def testScalarCongruency(self): with self.test_session(): bijector = tfb.Exp() assert_scalar_congruency(bijector, lower_x=-2., upper_x=1.5, rtol=0.05)
def testScalarCongruency(self): with self.test_session(): bijector = Chain((Exp(), Softplus())) assert_scalar_congruency(bijector, lower_x=1e-3, upper_x=1.5, rtol=0.05)
def testScalarCongruency(self): with self.test_session(): bijector = PowerTransform(power=0.2, validate_args=True) assert_scalar_congruency(bijector, lower_x=-2., upper_x=1.5, rtol=0.05)
def testScalarCongruency(self): with self.test_session(): bijector = bijectors.CholeskyOuterProduct(event_ndims=0, validate_args=True) assert_scalar_congruency(bijector, lower_x=1e-3, upper_x=1.5, rtol=0.05)
def testScalarCongruency(self): with self.cached_session(): assert_scalar_congruency(Kumaraswamy(concentration1=0.5, concentration0=1.1), lower_x=0., upper_x=1., n=int(10e3), rtol=0.02)
def testScalarCongruencySkewness1Tailweight0p5(self): with self.test_session(): bijector = SinhArcsinh(skewness=1.0, tailweight=0.5, validate_args=True) assert_scalar_congruency(bijector, lower_x=-2., upper_x=2.0, rtol=0.05)
def testScalarCongruency(self): with self.test_session(): assert_scalar_congruency( tfb.Gumbel(loc=0.3, scale=20.), lower_x=1., upper_x=100., rtol=0.02)
def testScalarCongruency(self): with self.test_session(): assert_scalar_congruency( Kumaraswamy(concentration1=0.5, concentration0=1.1), lower_x=0., upper_x=1., n=int(10e3), rtol=0.02)
def testScalarCongruency(self): with self.cached_session(): assert_scalar_congruency(Weibull(scale=20., concentration=0.3), lower_x=1., upper_x=100., rtol=0.02)
def testScalarCongruency(self): with self.test_session(): bijector = tfb.Softsign(validate_args=True) assert_scalar_congruency(bijector, lower_x=-20., upper_x=20.)
def testScalarCongruency(self): with self.cached_session(): bijector = bijectors.Square(validate_args=True) assert_scalar_congruency(bijector, lower_x=1e-3, upper_x=1.5, rtol=0.05)
def testScalarCongruencyWithPositiveHingeSoftness(self): with self.test_session(): bijector = Softplus(event_ndims=0, hinge_softness=1.3) assert_scalar_congruency(bijector, lower_x=-2., upper_x=2.)
def testScalarCongruency(self): with self.test_session(): assert_scalar_congruency( Gumbel(loc=0.3, scale=20.), lower_x=1., upper_x=100., rtol=0.02)
def testScalarCongruency(self): with self.test_session(): assert_scalar_congruency(tfb.Tanh(), lower_x=-9., upper_x=9., n=int(10e4))
def testScalarCongruency(self): with self.cached_session(): bijector = Softsign(validate_args=True) assert_scalar_congruency(bijector, lower_x=-20., upper_x=20.)
def testScalarCongruency(self): with self.cached_session(): bijector = Softplus() assert_scalar_congruency( bijector, lower_x=-2., upper_x=2.)
def testScalarCongruencyWithPositiveHingeSoftness(self): with self.cached_session(): bijector = Softplus(hinge_softness=1.3) assert_scalar_congruency( bijector, lower_x=-2., upper_x=2.)
def testScalarCongruency(self): with self.cached_session(): bijector = AffineScalar(shift=3.6, scale=0.42) assert_scalar_congruency(bijector, lower_x=-2., upper_x=2.)
def testScalarCongruencyWithNegativeHingeSoftness(self): with self.test_session(): bijector = tfb.Softplus(hinge_softness=-1.3) assert_scalar_congruency(bijector, lower_x=-2., upper_x=2.)
def testScalarCongruency(self): with self.test_session(): bijector = Affine( shift=3.6, scale_identity_multiplier=0.42, event_ndims=0) assert_scalar_congruency(bijector, lower_x=-2., upper_x=2.)
def testScalarCongruencyWithNegativeHingeSoftness(self): with self.test_session(): bijector = Softplus(event_ndims=0, hinge_softness=-1.3) assert_scalar_congruency( bijector, lower_x=-2., upper_x=2.)
def testScalarCongruency(self): with self.test_session(): bijector = PowerTransform(power=0.2, validate_args=True) assert_scalar_congruency( bijector, lower_x=-2., upper_x=1.5, rtol=0.05)
def testScalarCongruency(self): with self.test_session(): bijector = Softplus(event_ndims=0) assert_scalar_congruency( bijector, lower_x=-2., upper_x=2.)
def testScalarCongruencySkewnessNeg1Tailweight1p5(self): with self.test_session(): bijector = SinhArcsinh(skewness=-1.0, tailweight=1.5, validate_args=True) assert_scalar_congruency(bijector, lower_x=-2., upper_x=2.0, rtol=0.05)
def testScalarCongruency(self): with self.test_session(): bijector = identity_bijector.Identity() bijector_test_util.assert_scalar_congruency( bijector, lower_x=-2., upper_x=2.)
def testScalarCongruency(self): with self.cached_session(): bijector = identity_bijector.Identity() bijector_test_util.assert_scalar_congruency( bijector, lower_x=-2., upper_x=2.)
def testScalarCongruency(self): with self.test_session(): bijector = Chain((Exp(), Softplus())) assert_scalar_congruency( bijector, lower_x=1e-3, upper_x=1.5, rtol=0.05)
def testScalarCongruency(self): with self.cached_session(): bijector = AffineScalar(shift=3.6, scale=0.42) assert_scalar_congruency(bijector, lower_x=-2., upper_x=2.)
def testScalarCongruency(self): with self.test_session(): bijector = Softplus(event_ndims=0) assert_scalar_congruency(bijector, lower_x=-2., upper_x=2.)
def testScalarCongruency(self): with self.test_session(): bijector = Affine(shift=3.6, scale_identity_multiplier=0.42, event_ndims=0) assert_scalar_congruency(bijector, lower_x=-2., upper_x=2.)
def testScalarCongruency(self): with self.test_session(): bijector = tfb.Softplus() assert_scalar_congruency(bijector, lower_x=-2., upper_x=2.)
def testScalarCongruency(self): with self.cached_session(): assert_scalar_congruency(Sigmoid(), lower_x=-7., upper_x=7.)
def testScalarCongruency(self): with self.cached_session(): assert_scalar_congruency(Sigmoid(), lower_x=-7., upper_x=7.)
def testScalarCongruency(self): with self.test_session(): bijector = tfb.Exp() assert_scalar_congruency( bijector, lower_x=-2., upper_x=1.5, rtol=0.05)
def testScalarCongruency(self): with self.cached_session(): bijector = bijectors.Invert(bijectors.Exp()) assert_scalar_congruency( bijector, lower_x=1e-3, upper_x=1.5, rtol=0.05)
def testScalarCongruency(self): with self.cached_session(): chain = Chain((Exp(), Softplus())) assert_scalar_congruency( chain, lower_x=1e-3, upper_x=1.5, rtol=0.05)
def testScalarCongruency(self): with self.test_session(): bijector = bijectors.CholeskyOuterProduct( event_ndims=0, validate_args=True) assert_scalar_congruency(bijector, lower_x=1e-3, upper_x=1.5, rtol=0.05)