I am trying to find a way to calculate the value at each decision node for trees in XGBoostClassifier. I am aware that it can be done in sklearn Tree methods, such as RandomForest, DecisionTree etc. For example-
I found that xgboost get_dump method only shows values for leaf nodes. The goal is to find the contribution of each feature in the tree in the outcome. as in- Outcome=bias + contribution(feature1) + … + contribution(feature_n).
A similar example is here- https://blog.datadive.net/interpreting-random-forests/