lmcinnes / lmcinnes/umap

get a RecursionError

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

Nobody has claimed this yet.

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

Description

working_uamp = umap.UMAP(n_neighbors=5,
n_components=2,
min_dist=0.3,
metric='euclidean')

input_feat = df.as_matrix([df.columns[1:1001]])
embeddings = working_uamp.fit_transform(input_feat)

---------------------------error message ------------------------------

make_tree(data, indices, leaf_size)
105 rng_state)
106 left_node = make_tree(data, left_indices, leaf_size)
--> 107 right_node = make_tree(data, right_indices, leaf_size)
108 node = RandomProjectionTreeNode(indices, False, left_node, right_node)
109 else:

RecursionError: maximum recursion depth exceeded

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

Reproduce the shown Python UMAP snippet and follow the traceback into make_tree, the only entry point identified in the report. Determine why tree construction exceeds the recursion limit; done means the same input completes fit_transform without a RecursionError.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
machine-learning
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.