src.algorithms package
Subpackages
- src.algorithms.deep package
- src.algorithms.traditional package
- Submodules
- src.algorithms.traditional.DCSBM module
- src.algorithms.traditional.Leiden module
- src.algorithms.traditional.Louvain module
- src.algorithms.traditional.Markov module
- src.algorithms.traditional.SBM_em module
- src.algorithms.traditional.SBM_metropolis module
- src.algorithms.traditional.Spectral module
- src.algorithms.traditional.utils module
- Module contents
Submodules
src.algorithms.Algorithm module
- class src.algorithms.Algorithm.Algorithm(graph: Graph, *args, **kwargs)[source]
Bases:
object
Base class for graph clustering algorithms
- Parameters:
graph (Graph) – Graph object
- evaluate() list[str, float] [source]
Evaluates the clustering through various supervised (if labels provided in the Graph object) and unsupervised metrics:
Supervised:
Accuracy
Normalized Mutual Information
Adjusted Rand Index
Unsupervised:
Conductance
Silhouette
Modularity