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

Method setUp

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

Source from the content-addressed store, hash-verified

93class TestLGBayesianNetwork(unittest.TestCase):
94
95 def setUp(self):
96 nodedata = NodeData()
97 nodedata.load("unittestlgdict.txt")
98 skel = GraphSkeleton()
99 skel.load("unittestdict.txt")
100 skel.toporder()
101
102 self.lgb = LGBayesianNetwork(skel, nodedata)
103
104 def test_randomsample(self):
105 seq = self.lgb.randomsample(1)

Callers

nothing calls this directly

Calls 6

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

Tested by

no test coverage detected