Open amir-rahnama opened 7 months ago
Here is the crash logs on Google Colab:
UPDATE: If you set max_depth=30 for training the RF, the issue will go be fixed.
Possible other issues related to this:
Thanks for your report. I remember that we had the problem previously. Seems like a deep bug in our C code
Thanks for your report. I remember that we had the problem previously. Seems like a deep bug in our C code
Any fix?
@stergioa thanks for the gentle push. AFAIK nobody is working on this. Just checked the example and it doesn't throw an error on my Windows PC. We would certainly need one first before we can start working on this.
Issue Description
When you explain RandomForest models (and sometimes even GradientBoostingTrees with Sklearn) using TreeSHAP explainer, tree-shap script breaks.
I was assuming that this was fixed in BUG: Interventional TreeSHAP failing for large depth tree-based models, but this is still recurring in SHAP version 0.44.1 and even 0.43.0.
Colab link: https://colab.research.google.com/drive/1bAH-4WclIJQPvPwoY3cZ-UZu8MAccaTO?usp=sharing
Minimal Reproducible Example
Traceback
Expected Behavior
I expect TreeSHAP to work since neither the dataset nor the tree model is large enough not to fit into the memory.
Bug report checklist
Installed Versions