Apache Spark provides its users the ability to implement Decision Trees algorithms in a very efficient way, however the output seems to be not so friendly for non-technical users. So this project is an attempt to visualize Collapsible Decision Trees using D3.js, by parsing the nested conditional statements to a JSON format, and using it as dataset for display.
- (Apache Spark)
- Python 3.9
- HTML
- JavaScript
- D3.js
- copy the
strvalue of your Decision Treemodel.toDebugStringinDT.py - run
DT.pyto createdata/structure.json
- run
visualize.htmlonlocalhost(e.g. let PyCharm be your Webserver) to see the horizontal tree
