We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f15d0fd commit 3cf32efCopy full SHA for 3cf32ef
src/polygraph/sequence.py
@@ -201,7 +201,9 @@ def groupwise_mean_edit_dist(seqs, group_col="Group"):
201
for g1 in groups:
202
for g2 in groups:
203
dist = (
204
- dist_matrix[seqs[group_col] == g1, seqs[group_col] == g2].mean().mean()
+ dist_matrix[seqs[group_col] == g1, :][:, seqs[group_col] == g2]
205
+ .mean()
206
207
)
208
group_dist.append((g1, g2, dist))
209
0 commit comments