How to get feature names of shap_values from TreeExplainer?
How to get feature names of shap_values from TreeExplainer? Question: I am doing a shap tutorial, and attempting to get the shap values for each person in a dataset from sklearn.model_selection import train_test_split import xgboost import shap import numpy as np import pandas as pd import matplotlib.pylab as pl X,y = shap.datasets.adult() X_display,y_display = shap.datasets.adult(display=True) …