scphylo.tl.mp3#

scphylo.tl.mp3(df_grnd, df_sol)[source]#

Triplet-based similarity score.

For fully multilabeled trees with poly-occurring labels. This measure was introduced in [MP3].

Parameters
  • df_grnd (pandas.DataFrame) – The first genotype matrix (e.g. ground truth) This matrix must be conflict-free.

  • df_sol (pandas.DataFrame) – The second genotype matrix (e.g. solution/inferred) This matrix must be conflict-free.

Returns

Similarity out of one.

Return type

float

Examples#

Comparing two trees by MP3

Comparing two trees by MP3