An open API service indexing awesome lists of open source software.

https://github.com/fracpete/graphviz-treevisualize-weka-package

TreeVisualize plugin for the Weka Explorer using GraphViz (http://www.graphviz.org/) to generate the tree.
https://github.com/fracpete/graphviz-treevisualize-weka-package

java machine-learning plugin visualization weka

Last synced: about 1 year ago
JSON representation

TreeVisualize plugin for the Weka Explorer using GraphViz (http://www.graphviz.org/) to generate the tree.

Awesome Lists containing this project

README

          

# graphviz-treevisualize-weka-package

TreeVisualize plugin for the Explorer using GraphViz (http://www.graphviz.org/)
to generate the tree.

By default, the plugin expects the `dot` executable to be available on the
system path. If that should not be the case, you can specify the correct
location in the `GraphVizTreeVisualization.props` properties file.

Simply create the following file:

* Linux/Mac
```
$HOME/wekafiles/props/GraphVizTreeVisualization.props
```
`
* Windows
```
%USERPROFILE%\wekafiles\props\GraphVizTreeVisualization.props
```

And add the following content (adjust path, of course):

* Linux/Mac
```
Executable=/some/where/dot
```

* Windows
```
Executable=C:/Progam Files/some/where/dot.exe
```

Additional options for the executable can be specified with the
`AdditionalOptions` property in the same properties file.

## GraphVizTreeVisualization.props

Explanation of parameters:

* `Executable` -- the path to the executable, if not on the system path
* `AdditionalOptions` -- additional options to supply to the `dot` executable
* `ImageExtension` -- comma-separated list of image extensions to offer in the save dialog
* `Debug` -- whether to output debugging information
* `CleanUpTempFiles` -- whether to clean up temporary files
* `DialogWidth` -- the default width of the dialog displaying the graph
* `DialogHeight` -- the default height of the dialog displaying the graph

## Releases

* 2022.4.13 ([Weka >= 3.9.1](https://github.com/fracpete/graphviz-treevisualize-weka-package/releases/download/v2022.4.13/graphviz-treevisualize-2022.4.13-3.9.x.zip), [Weka >= 3.8.1](https://github.com/fracpete/graphviz-treevisualize-weka-package/releases/download/v2022.4.13/graphviz-treevisualize-2022.4.13-3.8.x.zip))
* 2018.5.13 ([Weka >= 3.9.1](https://github.com/fracpete/graphviz-treevisualize-weka-package/releases/download/v2018.5.13/graphviz-treevisualize-2018.5.13-3.9.x.zip), [Weka >= 3.8.1](https://github.com/fracpete/graphviz-treevisualize-weka-package/releases/download/v2018.5.13/graphviz-treevisualize-2018.5.13-3.8.x.zip))
* [2017.3.3](https://github.com/fracpete/graphviz-treevisualize-weka-package/releases/download/v2017.3.3/graphviz-treevisualize-2017.3.3.zip) (Weka >= 3.9.1)
* [2014.8.1](https://github.com/fracpete/graphviz-treevisualize-weka-package/releases/download/v2014.8.1/graphviz-treevisualize-2014.8.1.zip) (Weka >= 3.7.11 and < 3.8.1 and < 3.9.1)

### Troubleshooting

You can use the *2014.8.1* release with Weka 3.8.1 or 3.9.1, but you need to
create the `GraphVizTreeVisualization.props` properties file in the location
explained above and add the following parameter to it (you may also have to
add the `Executable` parameter):

```
AdditionalOptions=-Tpng
```

The new class loading mechanism in these Weka releases prevents the properties
file from being loaded and graphviz not getting an output type parameter in
its command-line, resulting in outputting the graph data again (which of course
will fail to load as an image, see issue [#3](https://github.com/fracpete/graphviz-treevisualize-weka-package/issues/3)).

## How to use packages

For more information on how to install the package, see:

https://waikato.github.io/weka-wiki/packages/manager/

## Maven

Add the following dependency in your `pom.xml` to include the package:

```xml

com.github.fracpete
graphviz-treevisualize-weka-package
2022.4.13
jar


nz.ac.waikato.cms.weka
weka-dev



```

## Screenshots

### Plugin menu

![plugin menu](src/site/resources/plugin_menu.png)

### Show graph

For the displaying the graph as an image:

![show graph](src/site/resources/show_graph.png)

### Save graph data

Allows you to save the graph as `.dot` text file:

![save graph data](src/site/resources/save_graph_data.png)

### Save graph image

Allows you to save the graph as PNG image:

![save graph image](src/site/resources/save_graph_image.png)

### Export graph

Here you can export the graph as PDF, Postscript or encapsulated Postscript:

![export graph](src/site/resources/export_graph.png)