-
Notifications
You must be signed in to change notification settings - Fork 60
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
{IndexError}index 2048 is out of bounds for dimension 1 with size 2048 #3
Comments
rang(d) function do not cover the index d, and d is get from (n, d) = X.shape |
You are right, but i may equal to d-1, then M[:,i+1] actually is M[:,d] which will occur errors. |
I got it. The matrix M is a dxd matrix which contains n eigenvectors in X.t() * X matrix |
Hello, my test code is as follow:
Sometimes, it will occur '{IndexError}index 2048 is out of bounds for dimension 1 with size 2048', I find the reason is that as 121 line in
the tsne_pytorch.py
, there may be out of bounds:Concretely,
i
may equal to d-1 in 121 line which causes M[:,i+1] will be out of bounds(we know M is dxd).I wonder if the modified code as follow is right?
The text was updated successfully, but these errors were encountered: