-
Notifications
You must be signed in to change notification settings - Fork 25
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
[r] [RFC] Add SOMASparseNDArray$read_spam_matrix()
#1367
base: main
Are you sure you want to change the base?
Conversation
Add support for reading spam matrices from sparse arrays. This allows users to read in data exceding the capacity of Matrix-based sparse matrices (`nnz > .Machine$integer.max || dim(mat) > .Machine$integer.max`) Implemented SOMA methods: - `SOMASparseNDArray$read_spam_matrix()`: allows reading in an array as a spam matrix (both 32- and 64-bit) Future work: - determine if this is desired functionality - we may want to combine all sparse-matrix readers into one `read_sparse_matrix()` or `read_matrix()` method with options to determine how to realize the matrix partially addresses 1348
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
I think that is a great and reasonably "free" option for us on capital-l "Large" data
_Edit: Didn't see the test breakage. Odd. Any pointers on this @mojaveazure ?
I think it's because I call I've updated the test to |
Looks like we get other repurcussions from being a spam object and not inheriting from Matrix? |
Yeah; that and > base::t
function (x)
UseMethod("t")
<bytecode: 0x560e860bc968>
<environment: namespace:base>
> Matrix::t
standardGeneric for "t" defined from package "base"
function (x)
standardGeneric("t")
<environment: 0x560e860e89c8>
Methods may be defined for arguments: x
Use showMethods(t) for currently available ones. S4 generics/methods get weird with implicit declaration and overriding S3 generics |
Codecov ReportPatch coverage has no change and project coverage change:
❗ Your organization is not using the GitHub App Integration. As a result you may experience degraded service beginning May 15th. Please install the Github App Integration for your organization. Read more. Additional details and impacted files@@ Coverage Diff @@
## main #1367 +/- ##
===========================================
- Coverage 65.11% 53.83% -11.29%
===========================================
Files 91 68 -23
Lines 7583 5430 -2153
===========================================
- Hits 4938 2923 -2015
+ Misses 2645 2507 -138
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
look great! Can we hold on on merging this PR? I introduced some design decisions on #1274. For example the addition of |
Add support for reading spam matrices from sparse arrays. This allows users to read in data exceding the capacity of Matrix-based sparse matrices (
nnz > .Machine$integer.max || dim(mat) > .Machine$integer.max
)Implemented SOMA methods:
SOMASparseNDArray$read_spam_matrix()
: allows reading in an array as a spam matrix (both 32- and 64-bit)Future work:
read_sparse_matrix()
orread_matrix()
method with options to determine how to realize the matrixNote for reviewers:
I don't know if this is functionality we want to support. I'm more than happy to say that we don't want to support spam, in which case we can close and move on
partially addresses #1348