Closed jgarrigan closed 2 years ago
I checked the class of X
and max.x
and decided to wrap both of them in as.data.frame
and I now have results and can plot the Shapley values using ggplot.
Thanks again for this example, this has really saved me
Hi Brandon,
Thanks for the great explanation here. I'm using isotree for outlier detection and this has been super useful.
I'm trying to run your example code but unfortunately I am getting the following error when I run your code verbatim, has something changed under the hood?:
The only change I made to the code was removing the reference to
random_seed = 2223
when fitting the isolation tree model, this doesn't appear to be an argument within theisolation.forest
function: https://cran.r-project.org/web/packages/isotree/isotree.pdf