New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Memory Error : Locally Linear Embedding #10493
Comments
thanks for the report. are you saying B is larger than it needs to be, or
that the processing could be done in small batches? I've not got time to
look right now
|
B is larger than it needs to be. |
A patch is welcome, IMO.
|
hi can i take this up? |
perhaps work through #10457 first. Have you looked at how to fix this?
…On 23 January 2018 at 20:55, Pinaki Nath Chowdhury ***@***.*** > wrote:
hi can i take this up?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#10493 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAEz65p8r6Tu1IFH-bBLHjvhG5Ga36gOks5tNayMgaJpZM4RiBTI>
.
|
I would like to take it up. I have an idea to fix this. |
I think I also meet the same problem. have you fixed it? @maykulkarni |
@jnothman I'm gonna give a try on this one. I'll post here if I get stuck! |
@sammsc is also working on this with me :) |
Okay... So I tried to replicate the error on my computer but when I try to add 500 neighbors to each part of the matrix my computer just can't do it.
And my program gets stuck in the last line. |
Locally Linear Embedding (LLE) encounters a memory error when using a large matrix (10000x10000) and a large number of neighbors (>500).
The memory error occurs with the
standard
option after the nearest neighbors have been computed inbarycenter_kneighbors_graph()
https://github.com/scikit-learn/scikit-learn/blob/master/sklearn/manifold/locally_linear.py#L99
X[ind]
creates a matrix of size(n_samples x n_neighbors x n_dim)
but the algorithm is then only using the neighbors sequentially inbarycenter_weights()
https://github.com/scikit-learn/scikit-learn/blob/master/sklearn/manifold/locally_linear.py#L20barycenter_weights()
could be modified to takeind
as input and avoid this issue.The text was updated successfully, but these errors were encountered: