Giter VIP home page Giter VIP logo

eurekatrees's Introduction

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:
pip install eurekatrees

Run:
eurekatrees --trees ./sample_files/trees.txt

Output:
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.
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:
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: Example Tree

Credit D3.js tree example from http://bl.ocks.org/d3noob/8326869 was a great help.

eurekatrees's People

Contributors

chuckwoodraska avatar daniel-ayala avatar dependabot[bot] avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

eurekatrees's Issues

Update find methods to regexes.

To pull text out of the file I do a weird find and replace that could be replaced with a regex that would make it more readable.

Visualization improvement for large trees

I have a similar issue where the tree is so large horizontally, that the labels merge. However, the quick fix to increase the width does not work anymore, size is constrained probably at d3 level. Can we have some fix for this? Maybe add a zoomable/expandable tree feature?

Buggy Visualization

Hi, I'm trying to use this project, but when it scales horizontally this happens:
image
This happen in every browser that I tested (chrome, firefox, edge)
Are there some configuration to resolve this?
Thanks in advance

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.