def test13(self):
     self.data = PCAlg.prepare_data('data/insurance_1000.data', ' ', False)
     p, h = chi(self.data, '0', '1', ['2', '3'])
     assert (round(h, 3) == 35.531)
 def test11(self):
     self.data = PCAlg.prepare_data('data/asia_10000.data', ' ', True)
     p, h = chi(self.data, 'either', 'tub', ['bronc', 'xray'])
     assert (round(h, 3) == 9884.0)
 def test12(self):
     self.data = PCAlg.prepare_data('data/alarm_1000.data', ' ', False)
     p, h = chi(self.data, '1', '2', ['3', '4'])
     assert (round(h, 3) == 3.115)
 def test7(self):
     self.data = PCAlg.prepare_data('data/asia_1000.data', ' ', True)
     p, h = chi(self.data, 'asia', 'tub', [])
     assert (round(h, 3) == 34.496)
 def test9(self):
     self.data = PCAlg.prepare_data('data/asia_1000.data', ' ', True)
     p, h = chi(self.data, 'asia', 'tub', ['smoke', 'lung'])
     assert (round(h, 3) == 36.997)
 def test6(self):
     p, h = chi(self.data, 'EXPCO2', 'PULMEMBOLUS', [
         'KINKEDTUBE',
         'PAP',
     ])
     assert (round(h, 3) == 3.862)
 def test4(self):
     p, h = chi(self.data, 'EXPCO2', 'PULMEMBOLUS', ['PAP'])
     assert (round(h, 3) == 3.841)
 def test3(self):
     p, h = chi(self.data, 'EXPCO2', 'PULMEMBOLUS', [])
     assert (round(h, 3) == 0.349)
 def test2(self):
     p, h = chi(self.data, 'PAP', 'PULMEMBOLUS', [])
     assert (round(h, 1) == 1041.7)
 def test1(self):
     p, *_ = chi(self.data, 'EXPCO2', 'EXPCO2', [])
     assert (p == 0)