parrt/dtreeviz

A python library for decision tree visualization and model interpretation.

View on GitHub ↗Jump to charts ↓

Data as of . Signed-in members get hourly updates — create a free account.

Summary Information

Updated 2 hours ago
Added to GitGenius on September 22nd, 2026
Created on August 13th, 2018
Open Issues & Pull Requests: 75 (+0)
GitHub issues: Enabled
Number of forks: 337
Total Stargazers: 3,157 (+0)
Total Subscribers: 44 (+0)

Repository Insights (GitGenius)

Median issue/PR response: 2.6 hours
Mean response time: 37.8 hours
90th percentile: 8.2 days
Tracked items: 7

Charts & Analytics

Fetching additional details & charts...

Issue Activity (beta)

Open issues: 7
New in 7 days: 0
Closed in 7 days: 0
Avg open age: 795 days
Stale 30+ days: 7
Stale 90+ days: 7

Recent activity

Opened in 7 days: 0
Closed in 7 days: 0
Comments in 7 days: 0
Events in 7 days: 0

Top labels

  • question (1)

Most active issues this week

Sign in to see which issues are moving.
Sign in

Detailed Description

dtreeviz is a Python library for decision tree visualization and model interpretation.

The library addresses the challenge of understanding how decision trees make predictions by rendering them as visual diagrams that expose the tree structure, split conditions, and decision paths. It works by taking trained tree models and generating publication-quality visualizations that highlight which features drive splits at each node and how samples flow through the tree to reach predictions. This approach makes it easier to debug models, communicate results to non-technical stakeholders, and identify potential biases or overfitting in tree-based classifiers and regressors.

The tool suits data scientists and machine learning practitioners who need to explain individual tree models or understand components within ensemble methods. It works with scikit-learn decision trees, random forests, and XGBoost models. Anyone building interpretability into a machine learning workflow, conducting model audits, or preparing visualizations for presentations will find this library valuable. The library is particularly useful when you need to inspect how specific samples are classified or when you want to verify that a tree is learning sensible decision boundaries rather than memorizing noise.

Development on the project shows consistent activity with regular commits addressing bug fixes and feature refinements. The codebase maintains a focused scope, concentrating on visualization quality and correctness rather than expanding into adjacent concerns. Pull requests receive thoughtful review with attention to both code quality and the visual output produced by the library. The project's documentation includes worked examples that demonstrate common use cases, helping new users understand how to integrate the tool into their workflows.