Skip to content

Migrate from spmatrix to sparray #46

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
gmmajal opened this issue May 8, 2025 · 0 comments
Open

Migrate from spmatrix to sparray #46

gmmajal opened this issue May 8, 2025 · 0 comments
Assignees

Comments

@gmmajal
Copy link
Contributor

gmmajal commented May 8, 2025

Since SciPy v1.15.0 https://github.com/scipy/scipy/releases/tag/v1.15.0 there is a new interface for the scipy.sparse module. From the release notes: “Sparse arrays are now fully functional for 1-D and 2-D arrays. We recommend that all new code use sparse arrays instead of sparse matrices and that developers start to migrate their existing code from sparse matrix to sparse array”.

A migration guide is provided here: https://docs.scipy.org/doc/scipy/reference/sparse.migration_to_sparray.html#migration-to-sparray

The files to consider are:
qualle/features/label_calibration/thesauri_label_calibration.py
qualle/features/combined.py
qualle/label_calibration/category.py
qualle/models.py

Also consider the unit tests for these scripts and modify if needed.

@gmmajal gmmajal self-assigned this May 8, 2025
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