Did I find the right examples for you? yes no

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

src/o/r/Orange-2.7.2/docs/reference/rst/code/misc-selection-bestonthefly.py   Orange(Download)
    find_best.candidate((Orange.feature.scoring.GainRatio(attr, lymphography), attr))
 
print "%5.3f: %s" % find_best.winner()
 
find_best = Orange.utils.selection.BestOnTheFly(Orange.utils.selection.compare_first_bigger)
 
for attr in lymphography.domain.attributes:
    find_best.candidate((Orange.feature.scoring.GainRatio(attr, lymphography), attr))
 
print "%5.3f: %s" % find_best.winner()
 
best_index = find_best.winner_index()
print "%5.3f: %s" % (find_best.winner(), lymphography.domain[best_index])
 

src/o/r/Orange-2.7.2/Orange/testing/unit/tests/test_selection.py   Orange(Download)
            best.candidate((t, str(t)))
 
        winner = best.winner()
        self.assertTrue(winner == (5, "5"))
        self.assertIsInstance(winner, tuple)
            best.candidate((t, str(t)))
 
        winner = best.winner()
        self.assertTrue(winner == (5, "5"))
        self.assertIsInstance(winner, tuple)