Does shap value use the target variable in its calculation?
I saw this answer mentioning that shap uses the target variable but I can get shap values without the target variable using the shap values, for example
explainer = shap.TreeExplainer(model)
shap_values = explainer.shap_values(x_val)
where model
is my loaded model which does not contain target data and x_val
is a matrix of features X samples` which does not contain my target data. I know shap is an approximation of shapley values, does this have something to do with it?
Category Data Science