Created
October 31, 2018 03:52
-
-
Save stasSajin/f751f3047babbf1949f43ec6b3763b0a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
feature_names = dtest.feature_names | |
interactions = xgb_model.predict(dtest, pred_interactions=True) | |
pd.DataFrame(interactions[0], | |
index = feature_names + ['intercept'], | |
columns= feature_names + ['intercept']) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment