I'm reading the Book Jason Bell - Machine Learning - Hands-On for Developers and Technical Professionals. EAN 9781119642251 Verlag John Wiley & Sons
Mr. Bell has Examples in the Book which the reader is supposed to do on himself.
I have Problems with the Example of Chapter 5 - Using Weka to Create a Decision Tree. The target is to create a decision tree with WEKA Toolkit. I use Version 3.8.5. The training set is provided here.
The only steps I must do are the following:
- Open the Weka program
- Click the Explorer button.
- Click the Open File button and select the data file called ladygaga.arff.
- Click the Classify button in the top row of buttons.
- In the Classifier pane, click the Choose button and select the J48 option under the Trees menu heading.
- click the Start button and watch the Classifier output window
And here my problem begins. My Output is completely different than the one in the book.
Book:
J48 pruned tree
------------------
placement = end_rack: yes (5.0/1.0)
placement = cd_spec
| pricing <= 80: yes (2.0)
| pricing > 80: no (2.0)
placement = std_rack
| eye_level = TRUE: yes (2.0)
| eye_level = FALSE: no (3.0)
Number of Leaves : 5
Size of the tree : 8
My Output:
J48 pruned tree
------------------
eye_level = TRUE: yes (6.0/2.0)
eye_level = FALSE: no (8.0/3.0)
Number of Leaves: 2
Size of the tree : 3
And that's completely different. :-D I don't understand why.
Has anybody done that example too? Have I missed an instruction step in the book? Or is a necessary setting not written in the book?