tnetwork.DCD.analytics.dynamic_partition.entropy_by_node¶
-
tnetwork.DCD.analytics.dynamic_partition.
entropy_by_node
(dyn_com, sn_duration=1, fast_on_sn=False)[source]¶ Compute the entropy by node.
For each node, compute the shannon entropy of its labels. (always same label=min entropy, every step a new label=max entropy) return the average value for all nodes
Parameters: - dyn_com – dynamic community to evaluate, can be SN or IG
- sn_duration – if graph is SN, used to discretize
Returns: