tnetwork.DCD.analytics.dynamic_partition.similarity_at_each_step¶
-
tnetwork.DCD.analytics.dynamic_partition.
similarity_at_each_step
(dynamicCommunityReference: tnetwork.dyn_community.communities_dyn_sn.DynCommunitiesSN, dynamicCommunityObserved: tnetwork.dyn_community.communities_dyn_sn.DynCommunitiesSN, score=None)[source]¶ Compute similarity at each step
It takes into account the fact that the reference might by incomplete. (remove from the observations all nodes/time not present in the reference)
Parameters: - dynamicCommunityReference – the dynamic partition to use as reference
- dynamicCommunityObserved – the dynamic partition to evaluate
- score – score to use, default adjusted NMI
Returns: pair (list of scores, list of sizes)