Plotting rework 2: add new plotting functions (and improve some old ones)#182
Merged
Plotting rework 2: add new plotting functions (and improve some old ones)#182
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
NOTE: this looks like an insane amount of commits until #166 is merged into v2.0.
crested.pl.scatter.gini_filtering: a plotting function that visualizes the effects of different cutoffs incrested.pp.filter_regions_on_specificity().crested.pl.scatter.region: a function to plot ground truth vs pred for a single region as a scatter, especially useful for models with many classes.crested.pl.bar.region:crested.pl.bar.prediction, and provides a one-stop-shop for plotting a single region's values as a barplot.log_transformoption to align with all other plotting functions.crested.pl.scatter.class_density:square=True, this now manually calculates and sets axis limits to ensure the y=x identity diagonal runs exactly through the corners of the plot. I did a TON of testing and googling to get this to work with aspect ratios (and made a stackoverflow account for it), but just couldn't get it to work with that. This works, even with multiple-model plots.Fixes #177 (except for the heatmaps with row/col_colors support, I'd like to get to that later.)