RecursionError
See original GitHub issueHi, 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:
- Created 5 years ago
- Comments:23 (11 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@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
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.