Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
bst.set_param({"predictor": "gpu_predictor"})
shap_array = np.abs(bst.predict(X,pred_contribs=True))
shap_values = pd.DataFrame(data=shap_array[:,:-1],columns=list(bst.feature_names))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment