-
Notifications
You must be signed in to change notification settings - Fork 55
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
Support SciPy sparse matrices to support reticulate? #141
Comments
I write a small program to convert SciPy sparse matrix to R. But where should I add it to? To RcppArmadillo? I have no idea how to put it in. Or should I create a new package like |
Nice! There are a few things we could do:
Which reminds me: I meant to get back to the |
I personally think that most sense it will be to include such conversions to |
Could, on the other hand What about my second question to use: |
Why not. We read/write target only because of definition of the svmlight format. |
Yes, a sparse matrix's internal representation is just three vectors, and @binxiangni has done most excellent work over this Google Summer of Code adding more and more converters to RcppArmadillo. What would help further, I thought, was to use your |
Ok, I got the point. By default Another widespread format for storing just sparse matrices (without target) is MatrixMarket - but it is not in |
This is now merged. |
Still don't understand why you have decided to put it into |
What is "it" ? If you wonder why SciPy sparse matrice support, well that is what the thread started with. And as optional component it makes perfect sense. |
Scipy sparse matrices conversion with reticulate.
|
Well, it is our package and it made sense to us. We are on the other hand still waiting on you and sparsio :) |
Don't get me wrong, I totally agree that one can do whatever he want with
own package. But mb really put such not related to Armadillo functionality
into separate package (something aimed to provide utils for sparse
matrices)? I have in mind couple more cases - subsetting csr matrices
without conversion to csc, faster sparse * dense matrix multiplications,
etc. Not sure where is the right place to discuss.
|
That's of course all possible. But to recap:
I see absolutely nothing wrong with that. We reached out to for help with sparse matrices via sparsio; I am still hopeful we can do that too. In the meantime we moved on with our package. Should be on CRAN "soon". |
Seems I again (somehow) lost the fact that scipy conversion feature was
implemented mainly for tests. In such case it makes much more sense. Thanks
for explanation.
|
The reticulate package is pretty exciting as it gives us R access to underlying Python code, and is already used by the R packages for keras and tensorflow.
Over there, a discussion started about sparse matrices.
Would it be feasible to cover one or more use cases of bringing SciPy sparse matrices to R?
The text was updated successfully, but these errors were encountered: