first thanks for creating this function/algorithm. It's been helping me understand these "black box" models. I initially ran into problems using the plot_features function. The issue was that the bars were not being viewd as well as the features (y-axis) are being squished such that they overlap. After copying and editing the plot.R function I noticed the issue was that plot_features is trying to plot too many cases. So adding the line explanation <- explanation[which(explanation$case %in% cases),] just before if (explanation$model_type[1] == 'classification'){...} and adding an option in the function call for the cases (cases = c("1","2")) allowed me to not only to view the plot in all it's informative glory, but give me the flexibility to investigate specific cases, which I personally find more useful. Thought I'd share this in the event anyone else is running into a similar problem.
In general the idea is that you should filter your explanations yourself before plotting them, but I may be inclined to agree that having the function within the plot function would be nice
Hi,
first thanks for creating this function/algorithm. It's been helping me understand these "black box" models. I initially ran into problems using the
plot_features
function. The issue was that the bars were not being viewd as well as thefeatures
(y-axis) are being squished such that they overlap. After copying and editing theplot.R
function I noticed the issue was thatplot_features
is trying to plot too many cases. So adding the lineexplanation <- explanation[which(explanation$case %in% cases),]
just beforeif (explanation$model_type[1] == 'classification'){...}
and adding an option in the function call for the cases (cases = c("1","2")
) allowed me to not only to view the plot in all it's informative glory, but give me the flexibility to investigate specific cases, which I personally find more useful. Thought I'd share this in the event anyone else is running into a similar problem.Cheers, Hayden.