[MRG] Sample weights for ElasticNetCV#16449
Conversation
Co-Authored-By: Alexandre Gramfort <alexandre.gramfort@m4x.org>
Co-Authored-By: Alexandre Gramfort <alexandre.gramfort@m4x.org>
|
@agramfort How would you like to calculate the cross-validated mean square error? Weighted by Furthermore, just as info, the current approach to rescale X by sqrt(sw) might use more memory copies as the unweighted version. |
|
The diff on Github doesn't seem to take into account the merge #15436 PR, maybe merging master would help?
I couldn't find the corresponding issue, maybe it could be worth opening one. There was #15651 but it's a different topic. In the short term, I think we want to be consistent with _fit_and_score function, sample_weight is not used for scoring there. We could discuss what is the right thing to do (or whether there should be an option to allow taking into account sample weight for scoring) in a separate issue.
|
|
@jjerphan If you feel comfortable, I'd appreciate your review approval very much:smirk: |
jjerphan
left a comment
There was a problem hiding this comment.
Hi @lorentzenchr,
Here are a few lasts suggestions before approval. 🙂
|
Decision in yesterday's dev meeting (2021-05-25): Remove |
|
To have it easily referenced, here is the code that is needed for
|
agramfort
left a comment
There was a problem hiding this comment.
besides LGTM
thx a lot @lorentzenchr for taking the time to dive deep into this
|
@rth Do you want to merge? @agramfort and @jjerphan have already approved. This PR only adds |
|
@lorentzenchr you need to rebase this one |
|
@rth Main merged and all CI green. |
Co-authored-by: Alexandre Gramfort <alexandre.gramfort@m4x.org> Co-authored-by: Christian Lorentzen <lorentzen.ch@googlemail.com> Co-authored-by: Thomas J. Fan <thomasjpfan@gmail.com>
Reference Issues/PRs
Partially solves #3702: Adds sample_weight to
ElasticNetCVandLassoCV, but only for dense feature array X.It is a follow up of PR #15436.
Any other comments?
DO NOT MERGE BEFORE #15436 as it is based on that branch.