Closed jmmuncie closed 1 year ago
Was able to solve! The matrix in my AnnData object was stored in compressed sparse column (CSC) instead of compressed sparse row (CSR) format. This can be fixed easily as follows:
import scipy.sparse as sp
data.X = data.X.tocsr()
OR, step by step
import scipy.sparse as sp
# extract your CSC-formatted sparse matrix
sparse = data.X
# convert CSC to CSR format
sparse_csr = sparse.tocsr()
# put CSR formatted matrix back into adata object
data.X = sparse_csr
Hi,
Thanks for creating and maintaining such an interesting tool for analyzing multiome data. I am having some trouble running
get_learning_rate_bounds()
on my accessibility topic model.First, I instantiated the model with default parameters by running:
Next, I ran
get_learning_rate_bounds()
with default parameters by running:And the following error was returned:
It appeared to me that this might be an error with the formatting of my data, but as far as I can tell the structure of my data is the same as that provided in the tutorial/example dataset:
Any help or suggestions for troubleshooting this would be greatly appreciated! Thank you!