An open API service indexing awesome lists of open source software.

https://github.com/niklaspor/sequential-clustering

Sequential Clustering implementation of SAHN in python.
https://github.com/niklaspor/sequential-clustering

Last synced: 26 days ago
JSON representation

Sequential Clustering implementation of SAHN in python.

Awesome Lists containing this project

README

        

# Clustering

## Cluster selection methods

| Single Linkage | Complete Linkage | Average Linkage |
|----------------|------------------|-----------------|
| | | |

## SAHN
- Sequential agglomerative hierarchical non-overlapping clustering
- Pseudocode implementation:
- ```select_clusters()``` refers to the selected method, e.g. single_linkage, multi_linkage
```
left_over_clusters = n
coordinates: [x, y]
clusters: [[x, y]]

foreach coordinate in coordinates:
cluster: [x, y]
append coordinate to cluster
append cluster to clusters

while clusters.size > left_over_clusters
cluster1, cluster2 = select_clusters()

foreach coordinate in cluster2:
append coordinate to cluster1

remove cluster2 from clusters

```