Skip to content
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

Merged
merged 5 commits into from
Feb 9, 2024

Conversation

gwaybio
Copy link
Member

@gwaybio gwaybio commented Nov 10, 2023

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)!

compiled_real_coefficient_heatmaps

Copy link

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

Copy link
Member

@jenna-tomkinson jenna-tomkinson left a 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!

Copy link
Member

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):

  1. The legends are a bit small and very close to overlapping on the neighboring plot.
  2. Can you add the plot labels (e.g., A, B, C)?
  3. 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?
  4. 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.

Copy link
Member Author

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)

  1. 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 :)
  2. 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). "
  3. 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 :)
  4. Yes, totally agree. Will work on it. Thanks!

@gwaybio
Copy link
Member Author

gwaybio commented Feb 9, 2024

All set! Sup figure updated - I think this looks much better (see sup fig document), thanks again! Will merge now.

@gwaybio gwaybio merged commit 1413031 into WayScience:main Feb 9, 2024
@gwaybio gwaybio deleted the feature-importance-viz branch February 9, 2024 12:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants