LingPy

lingpy.test.evaluate.EvalMSA.c_score

EvalMSA.c_score(mode=1)

Calculate the column (C) score.

Parameters :

mode : { 1, 2, 3, 4 }

Indicate, which mode to compute. Select between:

  1. divide the number of common columns in reference and test alignment by the total number of columns in the test alignment (the traditional C score described in Thompson1999, also known as “precision” score in applications of information retrieval),
  2. divide the number of common columns in reference and test alignment by the total number of columns in the reference alignment (also known as “recall” score in applications of information retrieval),
  3. divide the number of common columns in reference and test alignment by the average number of columns in reference and test alignment, or
  4. combine the scores of mode 1 and mode 2 by computing their F-score, using the formula 2 * \frac{pr}{p+r}, where p is the precision (mode 1) and r is the recall (mode 2).
Returns :

score : float

The C score for reference and test alignments.

Notes

The different c-