bob.measure.recognition_rate

bob.measure.recognition_rate(cmc_scores)[source]

Calculates the recognition rate from the given input, which is identical to the rank 1 (C)MC value. The input has a specific format, which is a list of two-element tuples. Each of the tuples contains the negative and the positive scores for one test item. To read the lists from score files in 4 or 5 column format, please use the bob.measure.load.cmc_four_column or bob.measure.load.cmc_five_column function.

The recognition rate is defined as the number of test items, for which the positive score is greater than or equal to all negative scores, divided by the number of all test items. If several positive scores for one test item exist, the highest score is taken.