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

Method setUp

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

Source from the content-addressed store, hash-verified

173class TestTableCPDFactorization(unittest.TestCase):
174
175 def setUp(self):
176 skel = GraphSkeleton()
177 skel.load("unittestdict.txt")
178 skel.toporder()
179 nodedata = NodeData()
180 nodedata.load("unittestdict.txt")
181 self.bn = DiscreteBayesianNetwork(skel, nodedata)
182 self.fn = TableCPDFactorization(self.bn)
183
184 def test_constructor(self):
185 self.assertTrue(len(self.fn.originalfactorlist) == 5)

Callers

nothing calls this directly

Calls 7

loadMethod · 0.95
toporderMethod · 0.95
loadMethod · 0.95
GraphSkeletonClass · 0.90
NodeDataClass · 0.90

Tested by

no test coverage detected