(address . bug-guix@gnu.org)
Tests fail with:
Toggle snippet (31 lines)
=================================== FAILURES ===================================
__________________________________ test_selu ___________________________________
def test_selu():
x = K.placeholder(ndim=2)
f = K.function([x], [activations.selu(x)])
alpha = 1.6732632423543772848170429916717
scale = 1.0507009873554804934193349852946
positive_values = get_standard_values()
result = f([positive_values])[0]
assert_allclose(result, positive_values * scale, rtol=1e-05)
negative_values = np.array([[-1, -2]], dtype=K.floatx())
result = f([negative_values])[0]
true_result = (np.exp(negative_values) - 1) * scale * alpha
> assert_allclose(result, true_result)
E AssertionError:
E Not equal to tolerance rtol=1e-07, atol=0
E
E Mismatch: 50%
E Max absolute difference: 1.1920929e-07
E Max relative difference: 1.0726715e-07
E x: array([[-1.111331, -1.520167]], dtype=float32)
E y: array([[-1.111331, -1.520167]], dtype=float32)
tests/keras/activations_test.py:226: AssertionError
-----BEGIN PGP SIGNATURE-----
iQEzBAEBCAAdFiEEUPM+LlsMPZAEJKvom9z0l6S7zH8FAl5ChskACgkQm9z0l6S7
zH848Af+OVXTI+ZqQZ7EdyWHWoNvmE/Rgfknl52NhLCJiOZru01VlNearu+WhiQs
98PP7CEUAHVGyyEp3sSuyJ2NMtgTzfhh7utHCDVVrrTJ8Ib4AnktwTIqekQWNL+I
qOutSLLlFPSRWh8uhshArK9It6/VfVcjqKqyw8WsdN6e6U1IJqgXkCV5a+qj3xTi
ESyUMOC0DsC905vfAyXhvWZhocqYsoeEyFGrs5+yMYjKGbPgo41SpJ/rB2ip1ETh
vpL7JNkqOslCeUu2ZdVYgUxPSa7o2bn8lpntQdZ7a3sp2MgXvnWxMiD+uz6p55O2
U1199+SBZbf0ZHBzJK0Ctqxp7Ks4PA==
=gPSR
-----END PGP SIGNATURE-----