Open lguirola opened 8 years ago
Hey @lguirola ,
Continuing with yesterday's work, I tried 5 hours today but still cannot get the same answer as the sklearn package does. I have no idea why. I followed exactly every step described in the paper, but it just does not work.
This is frustrating... Let me refresh my mind and see what I get later.
I will have a look at your code shortly.
Hey @lguirola ,
I think we do not have to pursue the exact same solutions as sklearn gets. I spent hours, and I found that (according to somebody's issues on StackOverflow), the Matlab and sklearn do not have same solutions given same parameters. Also, I tried statsmodels's lasso, different solutions too.
So you know, maybe everyone follows the 'coordinate descent' method, but they just do not get the same thing.
Yeah, perhaps it’s a matter (software)opinion! :-P
2016-04-13 0:27 GMT-04:00 sheldon notifications@github.com:
Hey @lguirola https://github.com/lguirola ,
I think we do not have to pursue the exact same solutions as sklearn gets. I spent hours, and I found that (according to somebody's issues on StackOverflow), the Matlab and sklearn do not have same solutions given same parameters. Also, I tried statsmodels's lasso, different solutions too.
So you know, maybe everyone follows the 'coordinate descent' method, but they just do not get the same thing.
— You are receiving this because you were mentioned. Reply to this email directly or view it on GitHub https://github.com/lguirola/sta663-Final-Project/issues/6#issuecomment-209221498
LMG
Hey @lguirola ,
Yes good plan! Also, I really like our original idea so I think at least now I can try LARS-EN tonight. Let me add some comments to your code tonight too. :)
Hey @shldngzh
I just finished cleaning up the code and wrapping it into a function. So a couple of issues
Hi @lguirola ,
Nice work. Let me have a look when I am back :)
Hey @shldngzh ;
I uploaded a first draft of the coordinate descent algorithm for elastic net. It's not working very well; it gets the correct results for the OLS parameters (no penalty), but something weird in other cases. I'll look at it again this week. I still would have to include a warning if the algorithm does not converge (which is often the case for certain parameters I tried).
Perhaps when you will be done with the LARS algorithm we can peer-monitor each other's code and give feedback. I would also like to know if you are fine with my style. I was thinking of wrapping steps into functions, as you suggested in the coding guide; perhaps I'll do that later. Anyway, if you have a look at the code and fix what fails, that would be great.