lmcinnes / lmcinnes/umap

Combining multiple distances

Open
#206 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Good Reads
Dominant language
Python
Stars
8.3k
Forks
871
Avg merge
1d 13h
Merged PRs (30d)
5

Description

spoiler alert: this is a theory question, so not directly related to the library. Sorry if it's the wrong place to ask, feel free to close/delete then

@lmcinnes I just watched your PyData Ann Arbor presentation and got curious about your point on combining distances. You say something to the tune of "as long as you define a distance for a datatype (column), you can use that to embed the object".

How does that work, exactly? Let's say that I have a reading with 3 dimensions and another two dimension specifying, say, hour and day of the week. Do I need to provide the distance between objects in this 5-dimensional type or can I just define a distance using the first 3 dimensions and a second one using the last 2? I Got the impression that it's the second case (thus the supervised embedding capabilities of UMAP), but then you're implicitly saying that you can combine multiple distances with varying underlying distributions. Is that the case? And if so, can you give any pointers regarding how that works or how/under what assumptions it makes sense?

Because that's the general case of combining multiple distances/scores without explicit weighting which is a very broad (and hard) problem that can have lots of applications by itself.

Thanks in advance and congratulations for the great research and library (and HDBSCAN, too!)

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No file, test, or entry point is identified. Start by reviewing the cited PyData Ann Arbor presentation and the UMAP project's explanation of supervised embeddings and combined distances; done would be a documented, technically supported answer to the question.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
machine-learning
Issue type
Documentation
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
15/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.