mosaicmpi.network.compare_community_jaccard_similarity#
- mosaicmpi.network.compare_community_jaccard_similarity(name1: str, network1: Network, name2: str, network2: Network, subset_to_shared_datasets: bool = True)#
Calculates the jaccard similarity of communities between two networks with overlapping nodes. One use case is to compare integrations after adding new datasets; the other is to compare integrations at different community resolutions.
- Parameters:
name1 (str) – name of first network
network1 (
mosaicmpi.Network) – first networkname2 (str) – name of second network
network2 (
mosaicmpi.Network) – second networksubset_to_shared_datasets (bool, optional) – calculate jaccard similarity over shared datasets only, defaults to True