Skip to content
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

java.lang.IndexOutOfBoundsException #68

Open
jerrygaoLondon opened this issue Aug 2, 2015 · 1 comment
Open

java.lang.IndexOutOfBoundsException #68

jerrygaoLondon opened this issue Aug 2, 2015 · 1 comment

Comments

@jerrygaoLondon
Copy link

Hi,

I got IndexOutOfBoundsException when attempting to compute SVD for a large matrix (3404 x 21951). The matrix is created using edu.ucla.sspace.matrix.SparseOnDiskMatrix. The numDimensions is set to maximum size (21951) of matrix so that i can get the diagonal matrix S for the large matrix. It runs OK for small matrix. Any idea about why this exception happens ? thanks, Jerry

Exception in thread "main" java.lang.IndexOutOfBoundsException: 8268500
at java.nio.DirectDoubleBufferS.get(DirectDoubleBufferS.java:253)
at edu.ucla.sspace.matrix.OnDiskMatrix.get(OnDiskMatrix.java:161)
at edu.ucla.sspace.matrix.factorization.SingularValueDecompositionMatlab.factorize(SingularValueDecompositionMatlab.java:141)
at edu.ucla.sspace.matrix.factorization.SingularValueDecompositionMatlab.factorize(SingularValueDecompositionMatlab.java:63)
...

@jerrygaoLondon
Copy link
Author

It turns out that it might be similar to the issue #58 . I'm trying to get S matrix for the large matrix, however, the SVDLIBC only return dimensions less than the number of rows.

Not sure why. I thing the data matrix for SVDLIBC should be "columns: variables/features, rows: data point".

Anyone can help to confirm this ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant