fix regression in test_HybridFactorGraph.py
parent
dcc47d268e
commit
c4e1f7ec7f
|
@ -287,8 +287,8 @@ class TestHybridGaussianFactorGraph(GtsamTestCase):
|
||||||
print(f"P(mode=1; Z) = {marginals[1]}")
|
print(f"P(mode=1; Z) = {marginals[1]}")
|
||||||
|
|
||||||
# Check that the estimate is close to the true value.
|
# Check that the estimate is close to the true value.
|
||||||
self.assertAlmostEqual(marginals[0], 0.23, delta=0.01)
|
self.assertAlmostEqual(marginals[0], 0.219, delta=0.01)
|
||||||
self.assertAlmostEqual(marginals[1], 0.77, delta=0.01)
|
self.assertAlmostEqual(marginals[1], 0.781, delta=0.01)
|
||||||
|
|
||||||
# Convert to factor graph using measurements.
|
# Convert to factor graph using measurements.
|
||||||
fg = bayesNet.toFactorGraph(measurements)
|
fg = bayesNet.toFactorGraph(measurements)
|
||||||
|
|
Loading…
Reference in New Issue