0% found this document useful (0 votes)
358 views

Weka Tutorial

The document provides instructions to load a contact lenses dataset into Weka, learn the structure of a Bayesian network from the data, save the network structure, classify new instances using the learned network both before and after adding an additional parent node, and compare the results.

Uploaded by

Anchua
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
358 views

Weka Tutorial

The document provides instructions to load a contact lenses dataset into Weka, learn the structure of a Bayesian network from the data, save the network structure, classify new instances using the learned network both before and after adding an additional parent node, and compare the results.

Uploaded by

Anchua
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 15

1.

Start Weka, open Bayes Network Editor (Under tools menu)

2. File -> load contact-lenses.arff (under wekas data folder)

3. Learn Bayes Net design by Tools -> Learn Network

4. Press Learn

5. Save the graph as lenses.xml

6. Open Explorer (don't close Bayes net editor)

7. Open file -> contact-lenses.arff

8. Classify Tab

9. Choose ->Bayes net

10. Click the bold Bayes net (yes, the text!)

11. Search algorithm -> choose -> from file (under fixed)

12. Click the bold text FromFile

13. type the path in the BIFFILE box

14. Press OK, OK

15. Change the folds of cross-validation to 2

16. Press start

17. Switch to the previous Bayes net editor

18. Right click 3->Add parent->age

19. Tools->Layout->Layout graph

20. Save as lenses2.xml


21. Switch to Weka explorer

22. Click bold text BayesNet

23. Click bold text FromFile

24. Change the file name to lenses2.xml

25. Press Ok,Ok

26. Press Start

27. Compare/visulize results by right/left click the lower-left window

You might also like