Forum: help
Monitor Forum | Start New ThreadRE: as.party() for trees from randomForest [ Reply ] By: Achim Zeileis on 2019-03-15 23:25 | [forum:46617] |
I haven't worked through it but I guess it shouldn't be too hard. getTree() has most of the necessary information. The question is whether one could get something like a model.frame() as well. If so, one could do a full "constparty" type plot (with full distributions in the leaves via boxplots or barplots). But at least a "simpleparty" (only with predictions in the leaves) should be possibly. I didn't have time to work through it in detail, though. But the information vignette("partykit", package = "partykit") should give you a hint how to do this. |
as.party() for trees from randomForest [ Reply ] By: Markus Loecher on 2019-03-15 18:32 | [forum:46615] |
I wonder how difficult it would be to adapt a tree from the R package randomForest (via getTree) to the party framework. It would be fantastic to be able to plot such a tree with the nice partykit visualizations. Markus |