Graphviz and Weka only generates empty trees -


i downloaded graphviz , installed package weka 3.9, created props file indicated on https://github.com/fracpete/graphviz-treevisualize-weka-package content:

executable="c:\program files (x86)\graphviz2.38\bin\dot.exe" (tried , without quotation marks)

and generate empty trees through plugin->visualize tree (graphviz).

i'm in bit of stress because need deliver project night , discovered error last moment, can please help? can deliver without trees, theyd major help.

thanks in advance!

first of all, bringing useful weka plugin notice! think it's written 1 of weka developers fwiw, not authors of graphviz.

to answer question, although it's late deadline sorry, sure have created props file correctly? in particular, format specifying executable path shown on project page linked (for example):

executable=c:/program files (x86)/graphviz2.38/bin/dot.exe 

i.e. forward slashes path separator, on windows. when replaced forward slashes backslashes gave me empty window too, suspect might problem.

however, in absence of plugin it's quite easy write graphviz code decision tree structure hand weka output, , not hard code script convert 1 other. here's example:

digraph mytree { node_1 [label="predictor1"] node_1 -> node_2 [label="<= 3.14"] node_1 -> node_3 [label="> 3.14"] node_2 [label="class 1", shape=box,style=filled,color=lightgray] node_3 [label="predictor2"] node_3 -> node_4 [label="<= 42"] node_3 -> node_5 [label="> 42"] node_4 [label="class 2", shape=box,style=filled,color=lightgray] node_5 [label="class 3", shape=box,style=filled,color=lightgray] } 

and corresponding output, obtained e.g. dot -tpng -o path\to\mytree.gv:

tree output graphviz


Comments

Popular posts from this blog

ubuntu - PHP script to find files of certain extensions in a directory, returns populated array when run in browser, but empty array when run from terminal -

php - How can i create a user dashboard -

javascript - How to detect toggling of the fullscreen-toolbar in jQuery Mobile? -