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

Method setUp

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

Source from the content-addressed store, hash-verified

112class TestTableCPDFactor(unittest.TestCase):
113
114 def setUp(self):
115 skel = GraphSkeleton()
116 skel.load("unittestdict.txt")
117 skel.toporder()
118 nodedata = NodeData()
119 nodedata.load("unittestdict.txt")
120 self.instance = DiscreteBayesianNetwork(skel, nodedata)
121 self.factor = TableCPDFactor("Grade", self.instance)
122 self.factor2 = TableCPDFactor("Letter", self.instance)
123
124 def test_constructor(self):
125 product = 1

Callers

nothing calls this directly

Calls 7

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

Tested by

no test coverage detected