Clustering

Clustering#

Clustering functions which can be called within a pypsa.Network via n.clustering.<func>.

Statistic methods#

busmap_by_hac(n_clusters[, buses_i, ...])

Create a busmap according to Hierarchical Agglomerative Clustering.

busmap_by_kmeans(bus_weightings, n_clusters)

Create a bus map from the clustering of buses in space with a weighting.

busmap_by_greedy_modularity(n_clusters[, ...])

Create a busmap according to Clauset-Newman-Moore greedy modularity maximization [CNM2004_1].

cluster_spatially_by_hac(n_clusters[, ...])

Cluster the network using Hierarchical Agglomerative Clustering.

cluster_spatially_by_kmeans(bus_weightings, ...)

Cluster the network according to k-means clustering of the buses.

cluster_spatially_by_greedy_modularity(...)

Create a busmap according to Clauset-Newman-Moore greedy modularity maximization [CNM2004_2].

cluster_by_busmap(*args, **kwargs)

Cluster the network spatially by busmap.

get_clustering_from_busmap(busmap[, ...])