python (65.1k questions)
javascript (44.2k questions)
reactjs (22.7k questions)
java (20.8k questions)
c# (17.4k questions)
html (16.3k questions)
r (13.7k questions)
android (12.9k questions)
Is there a way to customize the feature order in a SHAP beeswarm plot?
I'm wondering if there's a way to change the order the features in a SHAP beeswarm plot are displayed in. The docs describe "transforms" like using shap_values.abs or shap_values.abs.mean(0)...
Eich Varkin
Votes: 0
Answers: 1
Using SHAP with custom sklearn estimator
Using the following Custom estimator that utilizes sklearn pipeline if it's provided and does target transformation if needed:
class model_linear_regression(base_model_class):
def __init__(self, p...
Simon Adams
Votes: 0
Answers: 1
How to get SHAP values for each class on a multiclass classification problem in python
I have the following dataframe:
import pandas as pd
import random
import xgboost
import shap
foo = pd.DataFrame({'id':[1,2,3,4,5,6,7,8,9,10],
'var1':random.sample(range(1, 100), 1...
quant
Votes: 0
Answers: 5
Get waterfall plot values of a feature in a dataframe using shap package
I am working on a binary classification using random forest model, neural networks in which am using SHAP to explain the model predictions. I followed the tutorial and wrote the below code to get the ...
The Great
Votes: 0
Answers: 1