willwerscheid / flashier

A faster and angrier package for EBMF.
https://willwerscheid.github.io/flashier/
Other
10 stars 12 forks source link

Zero rows #132

Open surbut opened 2 months ago

surbut commented 2 months ago

I have tried this command on a sparse matrix (755 rowSums=0, 13 colSums =0, 38 colSums !=0, 245 rowSums !=0) with S= 1/1500 and var =0. Works on the sparse tensor, but not the matrix slice.

receive error below:

the data matrix must not have any rows or columns whose entries are either identically zero or all missing. Thanks!

pcarbo commented 2 months ago

Hi @surbut I believe you will first need to manually remove rows and columns that are entirely zero. (And I think more generally it might be a good idea to remove rows andcolumns with that do not vary.)

surbut commented 2 months ago

thanks @pcarbo .. it did work on the tensor, but perhaps that's because at some point in the unfolding there were non zero entries. Will revisit, thanks!