How to find the contributing features of each tree in Random Forest Classifier in Python
To do this you should have access to the tree structure of the random forest, as you are with classifier if you find the "gain" associated through the path of the variables (leaf) then you can calculate the contribution for each leaf. I cannot help more with Random forest (I am more verse with boosting).
Feb-2-2018, 03:14:28 GMT
- Technology: