490 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
3
votes
1
answer
169
views
Parallelization with "future" always uses all cores
I am following the documentation of the shapr package (version 1.0.5) to use parallelization, but whatever number of "workers" I specify, future always uses all available processor cores.
...
0
votes
0
answers
61
views
module 'shap' has no attribute 'DeepExplainer' with pytorch
I wrote a code for SHAP on images. It was working for two days, then it brought following error :
module 'shap' has no attribute 'DeepExplainer'
I uninstalled and installed the SHAP module again and ...
2
votes
2
answers
90
views
sv_dependence plot with shapviz and same feature for x axis and colour
I am sorry to ask this question again (first attempt here: shapvix sv_dependence color_var based on same feature), but it was closed because not enough details were provided. Below is an updated ...
2
votes
1
answer
121
views
Why shap's explainer.model.predict() and model.predict don't match?
I have a machine learning model and I calculated SHAP on it using following code:
import shap
background = shap.kmeans(X_dev, k=100)
explainer = shap.TreeExplainer(model, feature_perturbation="...
0
votes
0
answers
77
views
SHAP DimensionError: Length of features is not equal to the length of shap_values when using TreeExplainer with RandomForest
I'm encountering an issue when applying SHAP (SHapley Additive exPlanations) to my model predictions. Specifically, when I use shap.TreeExplainer with a RandomForestClassifier, I get the following ...
0
votes
0
answers
130
views
SHAP value in TreeExplainer: Additivity check failed in TreeExplainer
I am trying to obtain the SHAP values of a Random Forest model for binary classification, trained in Python. I am using the following code:
final_model = RandomForestClassifier(random_state=42, **...
-2
votes
1
answer
209
views
Can SHAP be used to calculate Shapley values for traditional coalitional game theory applications?
I am currently working on a project that needs me to calculate the Shapley values of players that enter into a coalition. I've written up the value function, but was wondering if there was a way to ...
1
vote
2
answers
372
views
Shap text plot does not show properly in notebook
I am running the demo code provided here. But I do not get the same plots with the nice coloring and highlights.
Here is how it looks like in the source notebook:
Here is how mine looks like
I am ...
0
votes
0
answers
29
views
Shap plots on a gnn model and specifically SGC model
I'm having a lot issues implementing shap plot for my SGC model.
Any one experienced the problem the same problem ,can give an example.
The problem is that there are a lot errors when try shap with ...
0
votes
1
answer
405
views
Length of features is not equal to the length of SHAP Values
Im running a random forest model and to get some feature importance and Im trying to run a SHAP analysis. The problem is that every time I try to plot the shap values, I keep getting this error:
...
0
votes
1
answer
183
views
UnicodeDecodeError when using SHAP 0.42 and xgboost 2.1.1
I am trying to explain my xgboost (v 2.1.1) model with shap (v 0.42) but I get this error:
UnicodeDecodeError Traceback (most recent call last)
Cell In[53], line 1
----> 1 ...
0
votes
0
answers
50
views
Problem with Shap values and feature importance plotting with GAN model
I have written this code to measure SHAP values and plot feature importance. However, I got an error when plotting the shape values. I used the gen_GRU_model_179.h5 generated model, my model expects a ...
0
votes
0
answers
21
views
Can I perform XAI for an input occluded image with the pretrained model (ArcFace) for detecting occlusion?
I am doing XAI for the input occluded image using a pretrained ArcFace model to find the occluded area of the image and plot the PLQ map.
Here for XAI, I have used shap library in python. I have using ...
1
vote
0
answers
184
views
SHAP plot with categorical columns
Before one-hot encoding, the input data consists of 2 categorical columns (category1, category2). category1 is among A,B,C and category2 is among X,Y. After the one-hot encoding, the input data ...
1
vote
2
answers
124
views
How to use treeshap based on mlr3 framework?
I am attempting to utilize the Treeshap package to calculate SHAP values. However, I encountered an error when trying to apply it to models created using the mlr3 framework. Specifically, I am unsure ...