Skip to content
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

figure out sparse vs dense scipy matrix stuff #28

Open
ctb opened this issue May 20, 2024 · 0 comments
Open

figure out sparse vs dense scipy matrix stuff #28

ctb opened this issue May 20, 2024 · 0 comments

Comments

@ctb
Copy link
Contributor

ctb commented May 20, 2024

As of v0.3.2, we now have the command pairwise_to_compare, which seems to work ok. (but, you know, tests needed! #24).

This is implemented in hokey code,

class Command_PairwiseToCompare(CommandLinePlugin):

and there is broken sparse-matrix loading code here,

def create_sparse_dissimilarity_matrix(tuples, num_objects):

and it feels like the mds2 command

class Command_MDS2(CommandLinePlugin):
should be able to operate entirely on sparse matrix representations,

but I find the scipy sparse matrix stuff https://docs.scipy.org/doc/scipy/reference/sparse.html difficult to interpret, and I keep on running into "this operation not allowed".

To the extent that I have any understanding at all, it's that we should be looking at COO arrays, maybe?

pls send help. kthxbye.

@ctb ctb changed the title figure out sparse vs dense matrix stuff figure out sparse vs dense scipy matrix stuff Jul 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant