-
Notifications
You must be signed in to change notification settings - Fork 16
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
ENH: Add a script to plot the signal estimated by the GP #228
Conversation
gives the below result (with the caveat mentioned in #228 (comment)) |
c102c22
to
9358298
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #228 +/- ##
=======================================
Coverage 66.18% 66.18%
=======================================
Files 19 19
Lines 905 905
Branches 112 112
=======================================
Hits 599 599
Misses 264 264
Partials 42 42 ☔ View full report in Codecov by Sentry. |
After 9358298 the script is able to simulate accept one, or two or three crossing fibers, e.g. One fiber:
Two fibers:
Three fibers:
Plot for two fibers (made the colormap solid and changed the opacity value only): Plot for three fibers: |
9358298
to
737ee8d
Compare
8d167f9
to
3550fc7
Compare
A few notes:
|
3550fc7
to
6e2e81c
Compare
6e2e81c
to
8f60576
Compare
Add a script to plot the signal estimated by the GP as well as the error data generated by the error analysis script. Add the necessary helper functions to the signal visualization module to plot the estimated signal as a surface. Modify the signal visualization error plotting method to optionally accept the color the figure size parameters. Add methods to the the signal simulation module in order to serialize the dMRI data. Refactor the the the signal simulation module to: - Allow the dMRI signal generation method to generate evals randomly if not provided. - Allow reusing the polar random angle generation utility. - Allow the single tensor method to accept a random generator for the sake of reproducibility. - Set the `zip` function `strict` parameter to `True` as we want all iterables to have the same length. - Create a method to simulate a single-fiber multivoxel signal given the gradient table and the rest of the necessary parameters. Modify the error analysis script to: - Reuse the `EddyMotionGPR` instance: factor it out from the CV function, as the instance does not change across folds and repeats. - Save the simulated signal and gtab. - Predict and save the signal of the GP estimation. - Save the simulated SNR to the CV scores data file. Since `None` indicates no noise, modify the `pandas` serialization method arguments so that `None` is not considered as a missing value. Take advantage of the commit to rename the `evals1` argument to `evals` in the error analysis script.
Rename the error analysis script to honor better its purpose.
Rename the `EddyMotionGPR` instance to honor better its classname.
8f60576
to
8835e63
Compare
EddyMotionGPR
instance to honor better its classname