-
Notifications
You must be signed in to change notification settings - Fork 3
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
Adding feature importance visualizations #48
Conversation
Check out this pull request on See visual diffs & provide feedback on Jupyter Notebooks. Powered by ReviewNB |
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.
Great PR! I made a few comments regarding the plots for you to address (if possible). LGTM otherwise!
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.
Some comments (applies to both plots):
- The legends are a bit small and very close to overlapping on the neighboring plot.
- Can you add the plot labels (e.g., A, B, C)?
- Just for my own knowledge, are these heatmaps what we expect to see? What makes it different than the shuffled baseline which doesn't look all that from the final model plots?
- I would recommend increasing the font size for these plots if possible. It might not be possible, but I think given the amount of whitespace that you couldn't remove, then might as well increase the font. No worries if that isn't possible.
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 feedback Jenna! (sorry for my delays in response)
- Good point. I've decided to update how I generate this plot, given it's lesser importance in the overall story now. I will no longer compile within R, but will choose to compile within the supplementary figure document itself. This is going to make the plot look nicer and will be easier :)
- There are certain conditions where panel labels are necessary, but I do not believe this is one of them. I think it is worth adding panel labels if individual plot components need to be referred to individually. We won't do this in the text - all we say is "In general, most phenotypes use different features to make predictions indicating that each phenotype can be explained by a unique set of nuclei measurements (Supplementary Figure 4). "
- This is a great question! The plots are actually pretty different shuffled vs. real. The big difference here is the color scale! I need to make a change so that the scale is consistent across heatmaps. This will drive home the difference :)
- Yes, totally agree. Will work on it. Thanks!
All set! Sup figure updated - I think this looks much better (see sup fig document), thanks again! Will merge now. |
Heatmaps of multiclass model coefficients. Note that I could not figure out how to remove the extra whitespace margins around the figures after two hours of trying. I think it is good enough as is (especially for a sup figure)!