Skip to content

Spatial Adaptive Agglomerative Aggregation (SA3) clustering #482

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 9 commits into
base: main
Choose a base branch
from

Conversation

u3ks
Copy link

@u3ks u3ks commented Apr 18, 2025

Hi all,

We implemented an algorithm to delineate contiguous areas within cities that have identical characteristics and configurations of buildings and streets, but we thought it might be useful for other applications since the procedure is quite generic.

The idea is that is a kind of spatially restricted HDBSCAN, so there is only one parameter to specify - the minimum number of observations to form a cluster. The procedure basically consists of two steps: first, carrying out a full spatially, restricted sklearn.cluster.AgglometariveClustering clustering; and second, extracting clusters from the resulting linkage matrix, using density-clustering extraction algorithms - Excess of Mass or Leaf. This results in multiscale (clusters have varying ranges of internal similarity), contiguous clusters with noise (some observations are not attached to any clusters).

I try to explain more how it works, examples and advantages and disadvantages in the sa3.ipynb notebook.

@martinfleis martinfleis self-requested a review April 18, 2025 17:22
@jGaboardi jGaboardi requested review from knaaptime and gegen07 April 19, 2025 16:38
@jGaboardi jGaboardi added enhancement New feature or request region labels Apr 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request region
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants