Quality scores to evaluate network partitions
Implementation of the scoring functions listed in
Yang, Jaewon, and Jure Leskovec.
"Defining and evaluating network communities based on ground-truth."
Knowledge and Information Systems 42.1 (2015): 181-213.
- Internal Density
- Edges inside
- Average Degree
- Fraction over median degree (FOMD)
- Triangle Participation Ratio (TPR)
- Expansion
- Cut Ratio
- Conductance
- Normalized Cut
- Maximum-ODF (Out Degree Fraction)
- Average-ODF
- Flake-ODF
- Modularity
import pquality
scores = pquality.pquality_summary()
print(scores['Indexes'])
print(scores['Modularity'])
- Python 3.x
- networkx>2.x
- numpy