Send Close Add comments: (status displays here)
Got it!  This site "robinsnyder.com" uses cookies. You consent to this by clicking on "Got it!" or by continuing to use this website.  Note: This appears on each machine/browser from which this site is accessed.
Python: decision trees
by RS  admin@robinsnyder.com : 1024 x 640


1. Python: decision trees
This page looks at decision trees using Python.

2. Python PyDotPlus package
There are several Python packages to support GraphViz. For more on GraphViz using Python, see Python: Diagrams with GraphViz .

The Python pydotplus package will be used here. One way to install the pydotplus package is as follows.
D:\Python38\Scripts\pip3.exe install pydotplus

Use the path to your installed version of Python. Here is the Python code [#1]


3. Text output
Here is the output of the Python code.


4. Image output
DecisionTree

5. Graphs
Note that one can use the decision tree output to create custom tree diagrams as needed.

by RS  admin@robinsnyder.com : 1024 x 640