Matt Epland
Matt Epland
Fixed for `ctree_leaf_distributions` in https://github.com/parrt/dtreeviz/pull/254 @parrt should I now do the same for `rtree_leaf_distributions, leaf_sizes, leaf_purity`? I should probably refactor the code to be reusable, similar to `_format_axes`. Are there...
Also [discussed here](https://github.com/parrt/dtreeviz/pull/200#issuecomment-1375038134).
> So IMO, we can add an option to display the probability, but not making it the default one. Totally happy to have the class name remain the default behavior....
Yeah, makes sense - that is the elegant solution. I will work on writing up an implementation for sklearn.
@parrt, if we did that the plots would be reproducible only if the user executed their notebook / code in the same order. I think it would be better to...
For FIGS, you can follow the example in [`figs_demo.ipynb`](https://github.com/csinva/imodels/blob/master/notebooks/figs_demo.ipynb) which uses `extract_sklearn_tree_from_figs()` and [`SKompiler`](https://github.com/konstantint/SKompiler) to extract the rules for individual trees.