def test_get_fom(self): """Ensures correct output from get_fom; input values are non-zero.""" this_fom = model_eval.get_fom(CONTINGENCY_TABLE_THRESHOLD_HALF) self.assertTrue(numpy.isclose( this_fom, FOM_THRESHOLD_HALF, atol=TOLERANCE ))
def test_get_fom_all_zeros(self): """Ensures correct output from get_fom; input values are all zero.""" this_fom = model_eval.get_fom(CONTINGENCY_TABLE_ALL_ZEROS) self.assertTrue(numpy.isnan(this_fom))