question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Hi, thanks for the great package.

I have a dataset which has 200000 rows and 15 columns. I tried to apply UMAP as following

embedding = umap.UMAP(n_neighbors=5, min_dist=0.3, metric='correlation').fit_transform(data)

After 10 seconds, I got following exceptions :

  • RecursionError: maximum recursion depth exceeded while calling a Python object
  • return make_angular_tree(data, indices, rng_state, leaf_size) SystemError: CPUDispatcher(<function angular_random_projection_split at 0x000001C8260D6378>) returned a result with an error set

I set the system recursion limit to 10000 as below and tried again but then python exited with a code like -143537645 meaning exited with error.

sys.setrecursionlimit(10000)

Is there any solution, workaround or anything I can do for this problem?

Thanks.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:23 (11 by maintainers)

github_iconTop GitHub Comments

3reactions
scharroncommented, Dec 11, 2018

@lmcinnes I attached you a 5000x100 numpy array that always makes UMAP crashes. I’m reproducing the error with : umap = UMAP(metric="cosine", n_components=2, min_dist=0.3).fit_transform(data)

data.npy.zip

2reactions
lmcinnescommented, Mar 26, 2019

I think some fixes to other issues may actually resolve this, so I’ll try to roll out a patch release in the next few days that will hopefully solve this.

Read more comments on GitHub >

github_iconTop Results From Across the Web

RecursionError in python - Stack Overflow
This means that the call stack cannot exceed the maximum depth (1000 by default). So in your first example, the function oku calls...
Read more >
Python RecursionError: Maximum Recursion Depth ...
A Python RecursionError exception is raised when the execution of your program exceeds the recursion limit of the Python interpreter. Two ways ...
Read more >
Built-in Exceptions — Python 3.11.1 documentation
exception RecursionError¶. This exception is derived from RuntimeError . It is raised when the interpreter detects that the maximum recursion depth (see ...
Read more >
recursionerror maximum recursion depth exceeded
The Python "RecursionError: maximum recursion depth exceeded" occurs when a function is being called so many times that the invocations ...
Read more >
maximum recursion depth exceeded while calling a ...
The recursionerror for Maximum Recursion Depth Exceeded While Calling A Python Object is thrown when we are trying to call a python object...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found