-
Notifications
You must be signed in to change notification settings - Fork 70
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
RCPP Not Compatible #127
Comments
Can you provide a MWE with the dfm? |
Sorry, what is a MWE?
…On Thu, Jul 19, 2018 at 12:04 AM, xgdgsc ***@***.***> wrote:
Can you provide a MWE with the dfm?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#127 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AUTG4RkyJoQl25ghXbBNtYOa6SOThwM4ks5uIBNggaJpZM4VVlwQ>
.
|
MWE.txt
|
@xgdgsc |
library('Rsomoclu')
data("rgbs", package = "Rsomoclu")
dfm = read.csv("~/tmp/MWE.txt",sep = " ")
dfm_m = data.matrix(dfm)
nEpochs<-5
nx<-70
ny<-70
som_train<-Rsomoclu.train(dfm_m,
nEpoch=nEpochs,
nSomX = nx,
nSomY = ny,
kernelType = 0,
radius0 = 0,
radiusN = 1,
radiusCooling = "linear",
scale0 = 1,
scaleN = .01,
scaleCooling = "linear") it' s a problem with not converting your dataframe. and you have to remove the header: |
I don't think that's my issue. When you read in the data use the "Matrix" package readMM function as follows. It is already in sparse matrix form when I run it.
|
Since matrix is the only type we support here. You may need to convert like:
It seems to take much more memory. So the recommended way of using in this case is the cmd line version. |
I was under the impression that sparse matrices were supported because of the kernel type option of "Sparse CPU" in the following documentation (https://cran.r-project.org/web/packages/Rsomoclu/Rsomoclu.pdf). So there is no sparse matrix support for this package? Edit: |
The support is mainly in the cli version. We didn' t use R intensively to think about this issue. |
It may be a good idea to update your R documentation in that case. What is cli? |
I am attempting to use the R implementation of Rsomoclu.train with the following parameters on a sparse matrix, dimensions 480k x 18k.
When I run this it fails almost instantly with the following error:
Am I setting a parameter incorrectly?
The text was updated successfully, but these errors were encountered: