Closed sjkoelle closed 4 months ago
Hi Sam, you are correct that sparse matrix compatibility is not implemented yet. This would be a welcome feature though.
Yes, when the documentation says "sparse matrix", we mean it's a dense matrix with sparse non-zero entries. I realize how this can be confusing.
You are welcome to submit a pull request to handle sparse matrices.
A few years later but saw this was still open - I wrote a tensor version here https://github.com/sjkoelle/montlake/blob/master/montlake/optimization/gradientgrouplasso.py
Hi,
I am trying to run a linear model with group lasso regularization and sparse matrix input.
code (x is a sparse matrix, y a vector):
glm = GLM(distr='normal',group = groups) glm.fit(x, y)
However, I get the following error.
output: ValueError Traceback (most recent call last)