EurekaTrees
Visualizes the Random Forest debug string from the MLLib in Spark using D3.js
Install / Use
/learn @ChuckWoodraska/EurekaTreesREADME
EurekaTrees
This program was made to visualize MLLib Random Forests. Running this program with a supplied trees file generates
visual version of the trees. You can get this from printing out the debug string of the generated model. In python that is:
model.toDebugString()
Install:<br>
pip install eurekatrees
Run:<br>
eurekatrees --trees ./sample_files/trees.txt
Output:<br>
The output path for generated files can be specified with the output_path switch which defaults to the current working dir.
eurekatrees --trees ./sample_files/trees.txt --output_path .
If you have a csv with the names of your features you can run that command with the columns switch.<br>
eurekatrees --trees ./sample_files/trees.txt --columns ./sample_files/columns.csv
The output are a bunch of HTML files. It auto opens home.html in your default browser, but you can also open up the file home.html allowing you to easily navigate to each of your trees.
Important Note:<br> The last change that was made splays out branches further which means more scrolling for right now, but I am looking into d3 canvas zooming to fit it to the page then allow the user to move around inside of the canvas. If anybody has any experience with doing this feel free to contribute or pass along any tips. Thanks!
Example Tree:

Credit D3.js tree example from http://bl.ocks.org/d3noob/8326869 was a great help.
Related Skills
node-connect
347.9kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
108.7kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
347.9kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
347.9kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
