Science Score: 54.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
✓CITATION.cff file
Found CITATION.cff file -
✓codemeta.json file
Found codemeta.json file -
✓.zenodo.json file
Found .zenodo.json file -
○DOI references
-
○Academic publication links
-
✓Committers with academic emails
1 of 3 committers (33.3%) from academic institutions -
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (13.5%) to scientific vocabulary
Keywords
Repository
Plot tree based machine learning models
Basic Info
- Host: GitHub
- Owner: erdogant
- License: other
- Language: Python
- Default Branch: master
- Homepage: https://erdogant.github.io/treeplot
- Size: 31.5 MB
Statistics
- Stars: 12
- Watchers: 1
- Forks: 2
- Open Issues: 0
- Releases: 20
Topics
Metadata Files
README.md
treeplot - Plot tree based machine learning models.
treeplotis Python package to easily plot the tree derived from models such as decisiontrees, randomforest and xgboost. Developing explainable machine learning models is becoming more important in many domains. The most popular and classical explainable models are still tree based. Think of decision trees or random forest. The tree that is learned can be visualized and then explained. However, it can be a challange to simply plot the tree. Think of configuration issues with dot files, path locations to graphviz, differences across operating systems, differences across editors such as jupyter notebook, colab, spyder etc. This frustration led to this library, an easy way to plot the decision trees 🌲. It works for Random-forest, decission trees, xgboost and gradient boosting models. Under the hood it makes many checks, downloads graphviz, sets the path and then plots the tree.
Functions in treeplot
Treeplot can plot the tree for Random-forest, decission trees, xgboost and gradient boosting models: * .plot : Generic function to plot the tree of any of the four models with default settings * .randomforest : Plot the randomforest model. Parameters can be specified. * .xgboost : Plot the xgboost model. Parameters can be specified. * .import_example('iris') : Import example dataset
⭐️ Star this repo if you like it ⭐️
Install treeplot from PyPI
bash
pip install treeplot
Import treeplot package
python
import treeplot as tree
Documentation pages
On the documentation pages you can find detailed information about the working of the treeplot with examples.
Examples
- Example: gradientboostingclassifier #
- Example: lightbm #
- Example: Explore other trees such as second best tree etc
Maintainers
- Erdogan Taskesen, github: erdogant
Contribute
- Contributions are welcome.
- If you wish to buy me a Coffee for this work, it is very appreciated :)
Owner
- Name: Erdogan
- Login: erdogant
- Kind: user
- Location: Den Haag
- Website: https://erdogant.github.io/
- Repositories: 51
- Profile: https://github.com/erdogant
Machine Learning | Statistics | Bayesian | D3js | Visualizations
Citation (CITATION.cff)
# YAML 1.2
---
authors:
-
family-names: Taskesen
given-names: Erdogan
orcid: "https://orcid.org/0000-0002-3430-9618"
cff-version: "1.1.0"
date-released: 2020-10-07
keywords:
- "python"
- "xgboost"
- "tree-structure"
- "treeplot"
- "randomforest"
- "randomforest"
- "gradient-boosting"
license: "MIT"
message: "If you use this software, please cite it using these metadata."
repository-code: "erdogant.github.io/treeplot"
title: "Plot XGboost and Randomforest Tree"
version: "0.1.0"
...
GitHub Events
Total
- Watch event: 1
Last Year
- Watch event: 1
Committers
Last synced: 5 months ago
Top Committers
Committer Domains (Top 20 + Academic)
Issues and Pull Requests
Last synced: 4 months ago
All Time
- Total issues: 0
- Total pull requests: 1
- Average time to close issues: N/A
- Average time to close pull requests: about 20 hours
- Total issue authors: 0
- Total pull request authors: 1
- Average comments per issue: 0
- Average comments per pull request: 0.0
- Merged pull requests: 1
- Bot issues: 0
- Bot pull requests: 0
Past Year
- Issues: 0
- Pull requests: 0
- Average time to close issues: N/A
- Average time to close pull requests: N/A
- Issue authors: 0
- Pull request authors: 0
- Average comments per issue: 0
- Average comments per pull request: 0
- Merged pull requests: 0
- Bot issues: 0
- Bot pull requests: 0
Top Authors
Issue Authors
Pull Request Authors
- chongfengling (1)
Top Labels
Issue Labels
Pull Request Labels
Packages
- Total packages: 1
-
Total downloads:
- pypi 1,369 last-month
- Total dependent packages: 1
- Total dependent repositories: 3
- Total versions: 18
- Total maintainers: 1
pypi.org: treeplot
Python package treeplot vizualizes a tree based on a randomforest or xgboost model.
- Homepage: https://erdogant.github.io//treeplot
- Documentation: https://treeplot.readthedocs.io/
- License: MIT License
-
Latest release: 0.2.0
published about 1 year ago
Rankings
Maintainers (1)
Dependencies
- pipinstallsphinx_rtd_theme *
- irelease * development
- nbconvert * development
- numpy * development
- pytest * development
- rst2pdf * development
- sphinx * development
- sphinx_rtd_theme * development
- sphinxcontrib-fulltoc * development
- funcsigs *
- graphviz >=0.20.1
- matplotlib *
- numpy *
- sklearn *
- wget *