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

Method setUp

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

Source from the content-addressed store, hash-verified

278class TestHyBayesianNetwork(unittest.TestCase):
279
280 def setUp(self):
281 self.nd = NodeData()
282 self.nd.load("unittesthdict.txt")
283 self.nd.entriestoinstances()
284 self.skel = GraphSkeleton()
285 self.skel.load("unittestdict.txt")
286 self.skel.toporder()
287 self.hybn = HyBayesianNetwork(self.skel, self.nd)
288
289 def test_randomsample(self):
290 sample = self.hybn.randomsample(1)[0]

Callers

nothing calls this directly

Calls 6

NodeDataClass · 0.90
GraphSkeletonClass · 0.90
HyBayesianNetworkClass · 0.90
entriestoinstancesMethod · 0.80
toporderMethod · 0.80
loadMethod · 0.45

Tested by

no test coverage detected