pyreal
pyreal copied to clipboard
Provide more options for bar plot visualization
Currently, plot_top_contributors can only plot a single entities' features or contributions. We should offer a few more options when multiple entities are fed in, as chosen by a parameter argument:
- Sum together the absolute values of all contributions for a feature, to get an overall importance
- Sum together the positive and negative contributions separately, to get the overall positive and negative contributions
- [maybe] Have one bar per entity per feature
UPDATE: A better alternative to this may be to introduce a global explainer that separates out positive and negative contributions (which would handle the functionality of 2). 1 is handled by global importance.