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

Method setUp

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

Source from the content-addressed store, hash-verified

71class TestDiscreteBayesianNetwork(unittest.TestCase):
72
73 def setUp(self):
74 skel = GraphSkeleton()
75 skel.load("unittestdict.txt")
76 skel.toporder()
77 nodedata = NodeData()
78 nodedata.load("unittestdict.txt")
79 self.instance = DiscreteBayesianNetwork(skel, nodedata)
80
81 def test_randomsample(self):
82 randomsample = self.instance.randomsample(5)

Callers

nothing calls this directly

Calls 6

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

Tested by

no test coverage detected