This tutorial shows how to use the basic C4.5 commands
1- In order to setup C4.5 to work from inside the command line please review this post.
2- Produce a decision tree:
Below you can find a step-by-step video tutorial.
1- In order to setup C4.5 to work from inside the command line please review this post.
2- Produce a decision tree:
- c4.5 -f "names of the data set" : this command produce one decision tree and the results are saved to file unpruned. in order, to save the decision tree into a file use the command " > name-of-the-file.txt "
- c4.5 -f whas1 -t"n" > dt.txt : This command produce "n" decision trees, and the window size is by default 20 % of the size of the data set. The output is saved to file dt.txt.
- e.g: c4.5 -f whas1 -t10 > dt.txt
- c4.5 -f whas1 -t10 -w"m" > dtw.txt : This command produces 10 decision trees using the windowing technique, the initial size of the window is m% of the size of the data set. The output is saved to dtw.txt
- e.g: c4.5 -f whas1 -t10 -w50 > dtw.txt
- c4.5rules -f whas1 > dtr.txt : This command converts the trees produced above to rule sets. The output is saved to dtr.txt
Below you can find a step-by-step video tutorial.