Closed mtsokol closed 6 months ago
Hi @willow-ahrens @hameerabbasi,
This PR adds compat changes to make finch backend compatible with Scipy, sklearn, etc., by adding:
SparseArray
pydata/sparse
Tensor.from_scipy_sparse()
Tensor.to_scipy_sparse()
SciPy PR: https://github.com/scipy/scipy/pull/19796
The PR is ready from my side!
Hi @willow-ahrens @hameerabbasi,
This PR adds compat changes to make finch backend compatible with Scipy, sklearn, etc., by adding:
SparseArray
marker class that is already used by PyData backend and SciPy, to identify apydata/sparse
object.Tensor.from_scipy_sparse()
to convert Finch tensor to SciPy object.Tensor.to_scipy_sparse()
to convert SciPy object back to Finch tensor.SciPy PR: https://github.com/scipy/scipy/pull/19796