MCPcopy Create free account
hub / github.com/CyberPoint/libpgm / test_refresh

Method test_refresh

tests/run_unit_tests.py:189–195  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

187 self.assertTrue(isinstance(self.fn.originalfactorlist[x], TableCPDFactor))
188
189 def test_refresh(self):
190 evidence = dict(Letter='weak')
191 query = dict(Intelligence=['high'])
192 result1 = self.fn.specificquery(query, evidence)
193 self.fn.refresh()
194 result2 = self.fn.specificquery(query, evidence)
195 self.assertEqual(result1, result2)
196
197 def test_sumproducteliminatevar(self):
198 self.fn.refresh()

Callers

nothing calls this directly

Calls 2

refreshMethod · 0.80
specificqueryMethod · 0.45

Tested by

no test coverage detected