Open conchoecia opened 9 months ago
Hmm, I think the short answer is that the PCA diagnostic plot won't work for sparse data -- I don't think there are any tests for that particular combination. This ultimately comes down to the sklearn PCA implementation, so it's not so easy to fix at this end. Sorry.
Ok, thank you for your thoughts!
I have a sparse dataframe with ~3 million columns of type int, and from 100-3000 samples. I pass a scipy lil dataframe with the values to umap for calculation. The whole process works fine, and I get mapper objects out with embeddings that make sense based on the data.
One problem I discovered was while trying the diagnostic tools. I got this error, for example, when trying the PCA diagnostic. I didn't find this error so far in the github issues, but perhaps it is related to: https://github.com/lmcinnes/umap/pull/911
The core error is this:
TypeError: PCA only support sparse inputs with the "arpack" solver, while "auto" was passed. See TruncatedSVD for a possible alternative.
This is how I generate the objects from the lil matrix: with my parameters
n
andmin_dist
:This was the traceback from where I made the call in my program:
Attached is a screenshot of a bokeh instance with my results from the lil matrix with ~3000 samples, colors are from my own annotation of known groups in the data: