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

Method setUp

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

Source from the content-addressed store, hash-verified

295class TestDynDiscBayesianNetwork(unittest.TestCase):
296
297 def setUp(self):
298 self.nd = NodeData()
299 self.nd.load("unittestdyndict.txt")
300 self.skel = GraphSkeleton()
301 self.skel.load("unittestdyndict.txt")
302 self.skel.toporder()
303 self.d = DynDiscBayesianNetwork(self.skel, self.nd)
304
305 def test_randomsample(self):
306 sample = self.d.randomsample(10)

Callers

nothing calls this directly

Calls 5

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

Tested by

no test coverage detected