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

Method test_randomsample

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

Source from the content-addressed store, hash-verified

303 self.d = DynDiscBayesianNetwork(self.skel, self.nd)
304
305 def test_randomsample(self):
306 sample = self.d.randomsample(10)
307 for i in range(1, 10):
308 self.assertEqual(sample[0]['Difficulty'], sample[i]['Difficulty'])
309
310
311class TestPGMLearner(unittest.TestCase):

Callers

nothing calls this directly

Calls 1

randomsampleMethod · 0.45

Tested by

no test coverage detected