-
Notifications
You must be signed in to change notification settings - Fork 152
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: local c2st metric #1109
feat: local c2st metric #1109
Conversation
Thanks for this review! I'll do the changes, review the doc and fix typing issues. |
Almost all the suggestions by @agramfort have been addressed. Except:
Future additional features could include:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome, thanks a lot for adding this!
Looks great already, I added a couple of comments and questions. I think this needs some renaming here and there to match our variable names conventions and PEP 8.
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #1109 +/- ##
==========================================
- Coverage 83.93% 83.04% -0.90%
==========================================
Files 90 92 +2
Lines 6930 7272 +342
==========================================
+ Hits 5817 6039 +222
- Misses 1113 1233 +120
Flags with carried forward coverage won't be shown. Click here to find out more.
|
I think I have addressed all your comments and requests @janfb, except the one where I should get rid of the |
All done @janfb |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the updates!
I added a couple of additional comments, but overall I think we are close to convergence 🙂
I had a look at the tutorial as well - I reads very well! I think it's a great to have a comprehensive introduction to the method so that users know how to use it and how to interpret the results. Just one comment: At the moment you are generating the different plots but you are not explaining them. I think it would be essential to add an explaination and interpretation to each diagnostic plot.
Thanks for the effort!
I am happy to help review this PR. But given the activity that is already visible, I'd push this effort to a later stage. Feel free to ping me if my help is needed. |
Response to review from @janfb: the above commit fixes following requests
Only remaing question: do you want to make the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the updates - looks good!
One more thing, the theta_o
generation in the LC2ST_NF
needs clarification.
Also, 8 tests are failing at the moment.
That's great @psteinb ! Do you have capacity to review the tutorial? That'd be great 🙏 |
Oh i don't know why the tests fail... they pass when I run them locally! |
I think the |
just rebase on main
|
6e7f3f7
to
32b375a
Compare
Oh right.. Sorry! So I fixed it, but had to reshape a lot... |
I did some experiments and I was wondering how you choose the parameters for the @psteinb you worked on that right? For me the Let me know what you think :) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is an awesome PR. Thanks @JuliaLinhart and all reviewers so far. I felt very humble reviewing it as a lot of dedication, discipline and rigor went into it.
I focused on reviewing the tutorial. Note, I couldn't directly suggest edits to the notebook towards the latter quarter of the notebook, for some reason the github webpage always wanted to remove images whenever I made a code suggestion.
Co-authored-by: Peter Steinbach <[email protected]>
There you go @psteinb :) Thanks a lot for your review! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks for looking into the classifier performance and variance!
There is one open question from my previous review and one question regarding the ensemble training.
Thanks! 🙏
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The tutorial looks good to me!
Hello everyone. I propose in this last commit a solution to the ensembling / cross-val issue stated above.
Finally, I added a small description for the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @JuliaLinhart for these additional changes and for the commitment during this long PR! 👏
It all looks good to me now!
Thanks also @psteinb for your review on this.
Will be merged soon 🎉
Thank you for your valuable comments and reviews !! |
What does this implement/fix? Explain your changes
L-C2ST(-NF) diagnostic: class, tutorial and tests.
Does this close any currently open issues?
Fixes #1005
Any relevant code examples, logs, error output, etc?
...
Any other comments?
...
Checklist
Put an
x
in the boxes that apply. You can also fill these out after creatingthe PR. If you're unsure about any of them, don't hesitate to ask. We're here to
help! This is simply a reminder of what we are going to look for before merging
your code.
x
] I have read and understood the contributionguidelines
x
] I agree with re-licensing my contribution from AGPLv3 to Apache-2.0.x
] I have commented my code, particularly in hard-to-understand areasx
] I have added tests that prove my fix is effective or that my feature worksx
] I have reported how long the new tests run and potentially marked themwith
pytest.mark.slow
.x
] New and existing unit tests pass locally with my changesx
] I performed linting and formatting as described in the contributionguidelines
main
(or there are no conflicts withmain
)