Skip to content
Snippets Groups Projects
Verified Commit e6f29088 authored by Yannick DAYER's avatar Yannick DAYER
Browse files

test(GMM): update values after learn.em changes.

parent f0408ad6
No related branches found
No related tags found
No related merge requests found
...@@ -240,7 +240,7 @@ def test_gmm(): ...@@ -240,7 +240,7 @@ def test_gmm():
np.testing.assert_allclose( np.testing.assert_allclose(
algorithm.machine.means, algorithm.machine.means,
array( array(
[[3.246973, 2.413918], [4.382181, 4.336439], [0.44701, 3.653619]] [[5.269755, 1.545634], [3.275648, 2.999225], [0.44701, 3.653619]]
), ),
atol=1e-5, atol=1e-5,
rtol=1e-5, rtol=1e-5,
...@@ -249,8 +249,8 @@ def test_gmm(): ...@@ -249,8 +249,8 @@ def test_gmm():
algorithm.machine.variances, algorithm.machine.variances,
array( array(
[ [
[9.384035e-01, 6.412975e-01], [2.220446e-16, 2.220446e-16],
[2.287441e-02, 1.781911e-02], [6.359690e-01, 1.046621e00],
[2.220446e-16, 2.220446e-16], [2.220446e-16, 2.220446e-16],
] ]
), ),
...@@ -259,7 +259,7 @@ def test_gmm(): ...@@ -259,7 +259,7 @@ def test_gmm():
) )
np.testing.assert_allclose( np.testing.assert_allclose(
algorithm.machine.weights, algorithm.machine.weights,
array([0.701606, 0.198394, 0.1]), array([0.1, 0.8, 0.1]),
atol=1e-5, atol=1e-5,
rtol=1e-5, rtol=1e-5,
) )
...@@ -267,16 +267,16 @@ def test_gmm(): ...@@ -267,16 +267,16 @@ def test_gmm():
fused, fused,
array( array(
[ [
-23.2301, -25.888355,
-15.178111, -21.89579,
-15.79934, -18.766963,
-14.814705, -20.338103,
-19.907042, -25.582336,
-14.284925, -18.796124,
-19.53618, -21.475942,
-10.727596, -13.596667,
-10.803899, -13.428485,
-15.976103, -19.276524,
] ]
), ),
atol=1e-5, atol=1e-5,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment