tnetwork.DCD.analytics.dynamic_partition.consecutive_sn_similarity

tnetwork.DCD.analytics.dynamic_partition.consecutive_sn_similarity(dynamicCommunity: tnetwork.dyn_community.communities_dyn_sn.DynCommunitiesSN, score=None)[source]

Similarity between partitions in consecutive snapshots.

Compute the average of a similarity score between all pair of successive partitions
Parameters:
  • dynamicCommunity – the dynamic partition to evaluate
  • score – the score to use for computing the similarity between each pair of snapshots. default: Overlapping NMI
Returns:

pair (list of scores, list of partition sizes (avg both partitions))