Open Anarion-zuo opened 1 year ago
XGBoost does not have such feature yet. You can however inspect the tree structure by using dump_model()
function.
perhaps I could implement it in a PR later on?
Sure, how about implementing a function like decision_path()
in scikit-learn?
Great. I should start hacking.
I have opened a PR here. https://github.com/dmlc/xgboost/pull/9151
Decision process should show how a certain value is computed through the decision tree, perhaps recording the branch taken at each tree node.
If no such feature exists for the time being, perhaps I could implement it in a PR later on?
Thanks