#25 · Primary category: Classical Machine Learning Frameworks

dtreeviz

data-science decision-trees machine-learning model-interpretation python random-forest scikit-learn visualization xgboost

A python library for decision tree visualization and model interpretation.

Project last updated:01/02/26

GitHub Stars

3.2K

Forks

338

Contributors

29

License

MIT

Why we included this project

Explaining what a trained tree actually decided usually means squinting at text rules or crude default renderings. This library draws real decision tree diagrams with the feature value distributions at each split, marks the path a given prediction takes, and adds leaf details plus class boundary plots for classifiers. The same adapter-style API covers scikit-learn, XGBoost, LightGBM, and Spark MLlib, so the way you inspect a model stays consistent even when the framework changes. That makes it practical for showing a stakeholder why a specific prediction came out the way it did, and for catching nonsense before a model goes anywhere near production.

Articles for this project

No articles for this project yet.

To suggest a topic or contribute an article, contact us.

Related projects in this category