UMAP Neighbourhood-Size Sensitivity Analysis
A neighbourhood-size sensitivity analysis refits UMAP on the same standardized data for several values of n_neighbors, keeping the other settings fixed, and measures how well each map keeps local neighbourhoods and how much it changes relative to a reference setting.
이웃 크기 민감도 분석은 다른 설정은 고정한 채 여러 n_neighbors 값으로 같은 표준화 자료에 UMAP을 다시 적합하고, 각 지도가 국소 이웃을 얼마나 잘 지키는지와 기준 설정의 지도에서 얼마나 달라지는지를 잽니다.
Does the picture my UMAP map gives depend on the number of neighbours I chose?
UMAP 지도가 보여 주는 모습이 제가 고른 이웃 수에 따라 달라지는지 확인하고 싶습니다.
UMAP is run for each n_neighbors value in a grid (by default 5, 15, 30 and 50) with a fixed seed and min_dist. Each map is scored by trustworthiness, continuity, the share of nearest neighbours preserved and the rank correlation of distances, and compared with the map at the reference setting by Procrustes disparity and neighbour overlap.
When to use UMAP Neighbourhood-Size Sensitivity Analysis
- You report a UMAP map and need to show that its clusters are not an artefact of n_neighbors.
- You want to choose n_neighbors with evidence rather than by eye.
- Small and large neighbourhood settings give different pictures and you want to quantify the difference.
When to use something else
- You only need one UMAP embedding: use UMAP Dimensionality Reduction
- You are checking a t-SNE map instead: use t-SNE Perplexity Sensitivity Analysis
- You need interpretable axes: use Principal Component Analysis (PCA)
Assumptions and requirements
- Rows are independent observations described by numeric features
- Standardized Euclidean distance is a sensible similarity between observations
- Large data are examined on a random subsample, which is assumed representative
What the analysis reports
- Trustworthiness, continuity, k-NN preservation and distance rank correlation for each n_neighbors
- Procrustes disparity and neighbour overlap against the reference map
- Line chart of trustworthiness across settings
How to report it
UMAP (min_dist = [value]) was refitted for n_neighbors values of [value] on [value] observations; trustworthiness (k = [value]) ranged from [value] to [value], and the Procrustes disparity from the n_neighbors = 15 map was at most [value].
Related methods
- UMAP Dimensionality Reduction
- t-SNE Perplexity Sensitivity Analysis
- t-SNE Dimensionality Reduction
- TriMap Embedding
How this method is validated
이 방법의 검증 근거
- Independent computation. 1 reference test compares the results with SciPy and direct computations (formulas, enumeration or simulation).
독립 계산. SciPy·직접 계산(식·열거·모의실험) 대조 참조 시험 1건 통과.
Tolerances are relative differences (absolute differences for values near zero). R comparisons and reference tests are re-run before each release of the analysis engine.
허용오차는 상대 차이입니다(0 근처 값은 절대 차이). R 대조와 참조 시험은 분석 엔진을 배포할 때마다 다시 돌립니다.
Run UMAP Neighbourhood-Size Sensitivity Analysis on Quorant
- Data you need
- a table (CSV or Excel) with predictor (feature) columns
- Price
- 600 credits for one analysis up to 10,000 rows (complexity level 4); larger or wider data costs more. Optional methodologist review: 2400 credits.
- Checking
- Compared with independent computations
- Before you pay
- A free pre-analysis diagnosis checks your data and gives an exact quote; nothing is deducted until you approve it.