Skip to content

Smrecz/DecisionTree

Repository files navigation

DecisionTree

DecisionTree is a lightweight open source framework that helps you define decision trees via configuration and generates DOT graph definition.

Available on:
Nuget NuGet

Aim

DecisionTree is aimed to provide a skeleton to build your decision tree around and to facilitate logic understanding, requirements cross-check and knowledge sharing by generating visualization definition in DOT language.

Graph definition in DOT

DOT language is used to define graphs and is understood by many tools - all of which have dependency on Graphviz: https://graphviz.org/

DecisionTree's ConvertToDotGraph<T>() method output can be used to generate a graph visualisation.
You can use on-line tools like for example: https://dreampuf.github.io/GraphvizOnline/

Examples

Check out ProjectDecisionTree.cs as an example of defined decision tree.
Check out DecisionTreeTest.cs for tree usage.

Below is an example of graph from generated DOT definition (DOT):

ProjectDecisionTree Graph

TODO

ALL SUGGESTIONS ARE WELCOME!

About

Decision Trees + Visualization

Resources

License

Stars

Watchers

Forks