MRG - ENH change lasso_path output to lars_path style#1947
MRG - ENH change lasso_path output to lars_path style#1947jaquesgrobler wants to merge 15 commits intoscikit-learn:masterfrom
Conversation
|
Will also have to fix conflicts and rebase 😬 |
There was a problem hiding this comment.
can you have a more explicit name than old_return? smtg like return_models
There was a problem hiding this comment.
hey Alex.. thanks for review. I'd done most of these already but I can't seem to push commits right now (whole afternoon it's been impossible). Hopefully I'll get the your suggestions up just now..
return_models sounds good to me. I'll make that so.
This warning is also gonna be replaced with a if(..) type warning as this way it's annoying and appears regardless of your choice of 'old_return'.. Thanks again :)
|
also all the calls to lasso_path in docs and functions should now use the old_return=False or the better name suggested. |
|
Thanks @agramfort ! I'll push your sugested changes when my connection stops it #$@% :) haha |
|
finally 😠 haha @agramfort you think it's necessary to change the benchmarks to Also I think I've got all the docstrings ect covered. |
|
Rebased on master |
|
Changed from WIP to MRG - waiting on Travis :) |
There was a problem hiding this comment.
Is there a reason why the 'log10(alphas)' disappeared, or is this a merge artifact (the remark applies to the whole file).
There was a problem hiding this comment.
I think it came from the merge.. I don't recall any reason for removing it.
I'll switch it back . Thanks for pointing out 👍
There was a problem hiding this comment.
I just found another merge related bug due to this one.. fixing
|
Ready |
There was a problem hiding this comment.
is this necessary?
you have above:
if precompute == 'auto':
precompute = (n_samples > n_features)
|
to deprecate this feature it should disappear from the code base eg in: l882: models_train = path(X_train, y[train], **path_params) then you'll need to take care about the predict especially the use of the intercept if fit_intercept=True |
There was a problem hiding this comment.
I think that you want to add a comment here on the purpose of 'return_models'.
There was a problem hiding this comment.
Missing whitespace after coma to be PEP8
|
I left a couple of very minor comments. After that, please do merge! |
|
to clarify my previous comment. The models are used in LinearModelCV so |
Indeed, this is blocker for the merge. Also, it will lead to |
|
I've addressed all the smaller comments.. however this last one is a bit of a problem.. i guess it would be a bit sloppy to leave 'return_models' in as is indefinitely.. I'm not sure which solution is better regarding changing the API and the intercepts. Since my inria report and presentation is now done after consuming my whole week, I could maybe have a look.. Any guidance appreciated :) |
|
I am starting with this ! |
|
Cool - keep me posted 👍 |
|
closing this in favor of #2186 |
Addresses Issue #32
Almost done..Just an example update, check some docstrings and go over tests left - ThenI'll change to MRG.
Unless I'm missing anything, I'd say this guy is ready.