Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- doc_num = 2
- print('Actual Label:', y_test[doc_num])
- print('Predicted Label:', predictions[doc_num])
- eli5.show_prediction(xgc.get_booster(), X_test.iloc[doc_num],
- feature_names=list(data.columns),
- show_feature_values=True)
Add Comment
Please, Sign In to add comment