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

Long Vectors error in SOM Function (Analogous to issue #54) #55

Open
jonhsussman opened this issue Sep 28, 2022 · 4 comments
Open

Long Vectors error in SOM Function (Analogous to issue #54) #55

jonhsussman opened this issue Sep 28, 2022 · 4 comments

Comments

@jonhsussman
Copy link

jonhsussman commented Sep 28, 2022

I previously noted an issue that arose in the MapDataToCodes step in which there is a long vectors error because the size of the data is larger than 2^31-1, which creates an error in the referenced C code: #54

The solution on this worked great. Now I am increasing the size of the data even further and encountering an analogous error in the SOM function.

somResults <- SOM(data=as.matrix(pixelData), rlen=numPasses, xdim=10, ydim=10, alpha=c(lr_start, lr_end)

And the error is long vectors are not supported in .C

Since you had a written solution to the previous issue, I am wondering, do you have a solution in this case by breaking down the object into blocks, or is that not possible in this case?

Thanks,
Jonathan

@SamGG
Copy link
Contributor

SamGG commented Sep 28, 2022

280 M features, an interesting dataset :-)
You should try som() in the kohonen package. It offers different modes of learning and multi-cores.
https://rdrr.io/cran/kohonen/man/supersom.html
You might switch to a Julia implementation of SOM for large datasets.
https://github.com/LCSB-BioCore/GigaSOM.jl
Best.

@jonhsussman
Copy link
Author

jonhsussman commented Sep 28, 2022 via email

@SamGG
Copy link
Contributor

SamGG commented Sep 28, 2022

supersom: quite direct.
GigaSOM: not tried.

@jonhsussman
Copy link
Author

jonhsussman commented Sep 28, 2022 via email

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

2 participants