def _match_score(predicted_biclustering, reference_biclustering, bicluster_attr):
k = len(predicted_biclustering.biclusters)
return sum(max(len(np.intersect1d(getattr(bp, bicluster_attr), getattr(bt, bicluster_attr))) /
len(np.union1d(getattr(bp, bicluster_attr), getattr(bt, bicluster_attr)))
for bt in reference_biclustering.biclusters)
for bp in predicted_biclustering.biclusters) / k
评论列表
文章目录