Skip to content

Weka Comparator to match rules to test data with filtering abilites

License

Notifications You must be signed in to change notification settings

AvinashSingh786/WekaComparator

Repository files navigation

=============================================================================================

 _       __     __            ______                                       __
| |     / /__  / /______ _   / ____/___  ____ ___  ____  ____ __________ _/ /_____  _____
| | /| / / _ \/ //_/ __ `/  / /   / __ \/ __ `__ \/ __ \/ __ `/ ___/ __ `/ __/ __ \/ ___/
| |/ |/ /  __/ ,< / /_/ /  / /___/ /_/ / / / / / / /_/ / /_/ / /  / /_/ / /_/ /_/ / /
|__/|__/\___/_/|_|\__,_/   \____/\____/_/ /_/ /_/ .___/\__,_/_/   \__,_/\__/\____/_/
                                               /_/
                                                                       -- By Avinash Singh

=============================================================================================

WekaComparator

Simple tree parser, takes in a TREE or PART file from Weka and converts to a excel table of rules and labels with positive and negative matches as well as a percentage. The rules are then matched to the test input and is stored in a specific format. This can be filtered based on percentage and number of positive samples.

Installation

The binary is available here WekaComparator.exe or can be compiled and executed with maven.

Input

An example of the sample files and format are provided, the UI is very simple. An example of how to use it can be seen below:

Sample UI

Output

The sample format of the matching tests to the rules are stored in the following format: {"rule": 4,"label": "HP", "+": 41.0, "-": 0.0, "%": 100.0}

The result of the provided sample files is:

Sample Output