-
Notifications
You must be signed in to change notification settings - Fork 34
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
SHAPR for custom defined models #420
Comments
Hi! Please use the github version of the shapr package. |
Thanks for your prompt response Martinju. |
No, the package on CRAN is outdated (and will be replaced by the main at GitHub) soon. It does things a bit differently. I suggest you install the github version of shapr instead, modify your code accordingly, try to use that to explain your custom model instead. The procedure is explained her: If you still got issues after that, let me know. |
Hello All, I have a Keras model, is it possible to make it work with it? |
Yes. Please see the main vignetten on the pkgdown site for instructions. |
Thanks. I tried and that works well on model I built with the Boston Dataset. However with one of my real model I get this `explanation <- explain( Success with message: Error in .makeMessage(..., domain = domain) : I am trying to understand this error by looking on the source code I still don't understand. Any suggest about where I should investigate.? |
It seems you have an enormous number of features? (83 or 84 features?) I have not seen this error message before, but in any case, you should first try to reduce the number of features to see if it works then. |
Yes, excellent. But I've dug into the code a little bit to have like a traceback of my error. I think apart from the big number of features. my error is coming from the
However a warning written this way produce an error because of the "," at the end. You can reproduce my error just by calling this line : |
Oh, thanks a lot for catching that bug! I will fix it ASAP |
@vmombo I just merged the fix to main |
thank you very much. I have just seen your comment |
Hi @martinju , I've 85 variables to explain for some predictions, I've tried several times but I got some crashes with the following error : I’m not sure if this is due to my computer's capacity, but I suspect it might be (so many coalitions). I found a "walk around" which is by grouping variables as you did in the paper. However and most importantly, I would like to know the following:
Thanks in advance, for your help |
Hello All,
I am using DeepCC model in which I want to apply SHAPR to get the shaply values .
I defined the functions as described in here https://cran.r-project.org/web/packages/shapr/vignettes/understanding_shapr.html , but its still giving me the error that SHAPR is not defined for this model.
I have defined these functions get_model_specs() and predict_model() as mentioned in the vignette but I am confused how and where are those functions called?
Please help as it has taken much time and I am unable to resolve this issue
The text was updated successfully, but these errors were encountered: