Transforming new data points puts them on the outskirts of existing clusters ...
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 8.3k
- Forks
- 871
- Avg merge
- 1d 13h
- Merged PRs (30d)
- 5
Description
... but never "inside" of clusters.
The blue points in the figure are "new" points that are transformed into the existing projection of the points of other colors.

Is there something I am doing wrong?
```python
config = {
'random_state': 42,
'n_neighbors': 10,
'n_components': 2,
'metric': 'cosine',
'spread': 2,
'min_dist': 0.01
}
trans = umap.UMAP(**config)
trans = trans.fit(a) # fit on some points
projection_a = trans.transform(a) # project them
projection_b = trans.transform(b) # project the "new" points
```
Thank you for your help!
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the issue from the provided `umap.UMAP` configuration and the `fit`, `transform(a)`, and `transform(b)` calls. Inspect the implementation and documentation for `transform` to determine whether the placement of new points is expected or indicates a defect; done means the behavior is explained or a reproducible failing test and scoped fix are identified.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- data-visualization, machine-learning
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100