def test_fleiss_pi_linear(self): ''' Test fleiss_pi_linear. ''' self.assertAlmostEquals(Decimal('0.23995756'), fleiss_pi_linear(KAZANTSEVA2012_G5))
def metric_pi_bed(forest1, forest2): dataset = { id_: { "1": get_untyped_masses(tree1), "2": get_untyped_masses(tree2) } for id_, (tree1, tree2) in enumerate(list(zip(forest1, forest2))) } score = segeval.fleiss_pi_linear(dataset) * 100 return score
def metric_pi_bed(forest1, forest2): dataset = {id_: {"1": get_untyped_masses(tree1), "2": get_untyped_masses(tree2)} for id_, (tree1, tree2) in enumerate(zip(forest1, forest2))} score = segeval.fleiss_pi_linear(dataset) * 100 return score