Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(2)  |  Call(2)  |  Derive(0)  |  Import(0)

src/d/r/dragnet-HEAD/test/test_util.py   dragnet(Download)
        f1 = _f1(p, r)
 
        prf = util.evaluation_metrics(predicted, actual)
        self.assertEqual((p, r, f1), prf)
 
        # for list assumption
        p = 5 / 7.0
        r = 5 / 8.0
        f1 = _f1(p, r)
        prf = util.evaluation_metrics(predicted, actual, bow=False)