-
Notifications
You must be signed in to change notification settings - Fork 7
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
Add Parcel and Searchlight Hyperalignment methods #74
Conversation
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.
Are these things tested or demoed somewhere ?
Hi @denisfouchard, Thanks for this addition ! Just to +1 @bthirion 's comments, it'd be great to have these new calls explicitly added into new examples and tests. This is adding a new dependency to the library, so it'd be especially useful to showcase why it's a good addition. Just to note : you'll also need to modify the In the meantime, I'll update these nilearn calls so your changes are against a passing |
cc75363
to
0e1ce05
Compare
Hi @emdupre and thanks for the message ! I will review and adapt to your suggestions in the days to come In the meantime, enjoy your end of the year festivities ! |
Hi @bthirion I will add plots to the package. For the tests, there are in the hyperalignment package I have been working on from the begining ;) |
There is an other problem, that we will need to adress at some point (maybe at the end of holidays) : we are importing the Hyperalignment package that is going to be private for the rest of its life maybe (as long as Feilong keeps it private at least), so we will need maybe to adapt the code ? We can not just add hyperalignment to the requirements and pip install it directly |
We don't want to depend on hyperalignment. We need to copy the relevant code here. |
The problem is that there is a lot of code, and a lot of files. It would imply to copy a ton of files in the package |
Yes, but not much more than other estimators. The point is to factorize as much as possible. |
I'll do my best. |
FastSRM has been worked out quite well, and is relatively high quality, this is why we can rely on it. |
…to hyperalignment
I tried to compress and remove all the unnecessary stuff to include it directly in fmralign. Sadly I think I can not go further, as hyperalignment does not seem to fit in the "template_alignment". It is its own unique way of doing alignment |
If we really want to have the minimum amount of files I can put everything in one file, but this is a bit risky and not very pleasing to read. |
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.
Looks great. I think there is room for improvement, by abiding better to sklearn's conventions.
Indeed. |
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.
.
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.
I think it can be merged now.
@emdupre what do u think ? :) |
Thank you, @denisfouchard !! This looks great 🚀 Only small comments, and then I think it's good to go ! |
Co-authored-by: Elizabeth DuPre <[email protected]>
Co-authored-by: Elizabeth DuPre <[email protected]>
Co-authored-by: Elizabeth DuPre <[email protected]>
Co-authored-by: Elizabeth DuPre <[email protected]>
I have made changes according to @emdupre's latest comments. Tbh I don't want to adress now comments about code choices that were made at the begining and that were left uncommented for the whole 3 last months 😅. I did what I could, but I think it is the best we can do for INT ! |
Thanks, @denisfouchard ! I know that longer reviews are frustrating, but please remember that this is a huge amount of code (for everyone) with very little context (e.g. the conversations on licensing, notification of ready-to-review status, etc) for me. Regardless, it's fine if you don't want to address at this point any potentially remaining code changes in this PR, but please at least respond to comments brought up in a review so we know if we need to open a dedicated issue. Thanks again for your work on this. |
Sure, I think I replied to every comment ! (I did move the functions of toy data generations as you proposed) LMK if it is good for you or if anything should have its own PR if ;) |
@emdupre WDYT ? |
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.
I think this is ready 🚀
Thanks @denisfouchard for the (huge) lift !! Excited to see this added.
Merging, then. Thx to all ! |
Great ! Thank you for the reviews ! |
For future reference, this PR is intended to add the Individualized Tuning model (see paper) into
fmralign
and compare it to FastSRM (H. Richard et. al. , 2019)