glmnet-python icon indicating copy to clipboard operation
glmnet-python copied to clipboard

Elastic net paths did not uncompress the glmnet indices

Open wernergithub opened this issue 11 years ago • 0 comments

Hello,

I'm new to github, so I hope I follow the correct channel. Attached a patch that solves a bug in the ElasticNet.py file. In particular, the glmnets returns compressed indices, yet these were not used. Although that doesn't matter when just plotting graphs, it does matter if we try to use the returned models as a predictor. Therefore it is necessary to decompress the coefficients before returning them.

Secondly, the ElasticNet predictor object itself was also blissfully unaware of the indices.

This patch solves these two problems With kind regards,

Werner,-

wernergithub avatar Jan 21 '15 19:01 wernergithub