alugowski / sparse-matrix-io-comparison Goto Github PK
View Code? Open in Web Editor NEWCompare I/O of sparse matrix libraries
License: BSD 2-Clause "Simplified" License
Compare I/O of sparse matrix libraries
License: BSD 2-Clause "Simplified" License
Hi, this is a random person who got this repo in github recommendations.
Comment1: cool and nice, but ungzipped matrix market is a very expensive option. Comparison with gzip is more valuable IMO
Comment2: And as a baseline, it's valuable to see something terribly simple based on columnar format, e.g.:
import polars as pl
from scipy import sparse
import numpy as np
x = sparse.coo_array(np.random.randn(1000, 1000)) # not sparse, I know
# save to parquet
pl.DataFrame(dict(col=x.col, row=x.row, data=x.data)).write_parquet('/tmp/sparse_coo.pqt')
df = pl.read_parquet('/tmp/sparse_coo.pqt')
x2 = sparse.coo_array((df['data'].to_numpy(), (df['row'].to_numpy(), df['col'].to_numpy())))
np.allclose(x.todense(), x2.todense())
and see how these compares in terms of speed (because from perspective of floating precision binary formats certainly win)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.