Skip to content

Converting user libraries of SciPy sparse matrix to sparse array #4

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

Open
dschult opened this issue Apr 7, 2025 · 1 comment
Open
Labels
Data analysis Statistics, optimization, sparse data, plotting, and dataframes.

Comments

@dschult
Copy link
Member

dschult commented Apr 7, 2025

If folks have libraries who are using SciPy sparse matrices, and you'd like help converting them to run/work with sparse array, this sounds like a nice opportunity to work that out. I wrote a migration guide and have converted a few libraries (working with sklearn now). I suspect an in-person setting could be helpful in this kind of project.

  • step 1 is to make the library work with sparse arrays.
  • step 2 allow either interface for inputs and choosing from a few options for handling outputs.
  • step 3 switch internal creation to sparse array while ensuring "easy" transitions when sparse matrix is removed.
@bsipocz bsipocz added the Data analysis Statistics, optimization, sparse data, plotting, and dataframes. label Apr 7, 2025
@dschult
Copy link
Member Author

dschult commented May 14, 2025

We've been working on the pysal project during the summit.
The PR pysal/libpysal#785 implements "pass 1" of the 2-pass process for migration as described in the Scipy migration guide page.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Data analysis Statistics, optimization, sparse data, plotting, and dataframes.
Projects
None yet
Development

No branches or pull requests

2 participants