(self)
| 102 | self.lgb = LGBayesianNetwork(skel, nodedata) |
| 103 | |
| 104 | def test_randomsample(self): |
| 105 | seq = self.lgb.randomsample(1) |
| 106 | ctr = 0 |
| 107 | for entry in seq[0].keys(): |
| 108 | self.assertTrue(seq[0][entry], float) |
| 109 | ctr = ctr + 1 |
| 110 | self.assertEqual(ctr, 5) |
| 111 | |
| 112 | class TestTableCPDFactor(unittest.TestCase): |
| 113 |
nothing calls this directly
no test coverage detected