示例#1
0
    def test_fleiss_pi_linear(self):
        '''
        Test fleiss_pi_linear.
        '''

        self.assertAlmostEquals(Decimal('0.23995756'),
                                fleiss_pi_linear(KAZANTSEVA2012_G5))
示例#2
0
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
示例#3
0
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