Ejemplo n.º 1
0
 def test_is_equivalent(self):
     ind1 = Independencies(['X', ['Y', 'W'], 'Z'])
     ind2 = Independencies(['X', 'Y', 'Z'], ['X', 'W', 'Z'])
     ind3 = Independencies(['X', 'Y', 'Z'], ['X', 'W', 'Z'],
                           ['X', 'Y', ['W', 'Z']])
     self.assertFalse(ind1.is_equivalent(ind2))
     self.assertTrue(ind1.is_equivalent(ind3))
Ejemplo n.º 2
0
 def test_is_equivalent(self):
     ind1 = Independencies(["X", ["Y", "W"], "Z"])
     ind2 = Independencies(["X", "Y", "Z"], ["X", "W", "Z"])
     ind3 = Independencies(["X", "Y", "Z"], ["X", "W", "Z"],
                           ["X", "Y", ["W", "Z"]])
     self.assertFalse(ind1.is_equivalent(ind2))
     self.assertTrue(ind1.is_equivalent(ind3))
 def test_is_equivalent(self):
     ind1 = Independencies(['X', ['Y', 'W'], 'Z'])
     ind2 = Independencies(['X', 'Y', 'Z'], ['X', 'W', 'Z'])
     ind3 = Independencies(['X', 'Y', 'Z'], ['X', 'W', 'Z'], ['X', 'Y', ['W', 'Z']])
     self.assertFalse(ind1.is_equivalent(ind2))
     self.assertTrue(ind1.is_equivalent(ind3))