rust-ml / linfa

A Rust machine learning framework.
Apache License 2.0
3.66k stars 238 forks source link

Support sparse matrices #192

Open PABannier opened 2 years ago

PABannier commented 2 years ago

In high dimensional statistics, we usually rely on CSC and CSR arrays when matrices are very sparse. It is particularly for speeding up the coordinate descent procedure.

I can implement that in the ElasticNet subpackage if you find it worth it. What do you think?

YuhanLiin commented 2 years ago

The sprs crate implements CSR matrices and is already used in linfa-kernel and linfa-processing. Integrating it into ElasticNet would be welcome.