seqme.utils.spearman_alignment_score

seqme.utils.spearman_alignment_score#

seqme.utils.spearman_alignment_score(xs_a, xs_b)[source]#

Compute the Spearman correlation coefficient using the pairwise distance between embedding spaces.

Parameters:
  • xs_a (ndarray) – Sequence embeddings for space A.

  • xs_b (ndarray) – Sequence embeddings for space B.

Return type:

float

Returns:

Spearman correlation coefficient between [-1, 1].