hugin a bayesian network based decision tool
play

Hugin: a Bayesian Network based decision tool Gianluca Corrado - PowerPoint PPT Presentation

Hugin: a Bayesian Network based decision tool Gianluca Corrado gianluca.corrado@unitn.it Machine Learning G. Corrado (disi) Hugin Machine Learning 1 / 12 Downloading and Installing FREE HuginLite The free trial version is limited to handle


  1. Hugin: a Bayesian Network based decision tool Gianluca Corrado gianluca.corrado@unitn.it Machine Learning G. Corrado (disi) Hugin Machine Learning 1 / 12

  2. Downloading and Installing FREE HuginLite The free trial version is limited to handle max. 50 states and learn from max. 500 cases It is prohibited to use the free Hugin Lite for any other purpose than the demonstration of capabilities and proof of concept http://www.hugin.com/productsservices/demo/hugin-lite G. Corrado (disi) Hugin Machine Learning 2 / 12

  3. Defining Nodes and Links G. Corrado (disi) Hugin Machine Learning 3 / 12

  4. Defining the States By clicking on a state holding the CRTL key Insert the probability value associated to each state for all the nodes. G. Corrado (disi) Hugin Machine Learning 4 / 12

  5. Compiling the Network G. Corrado (disi) Hugin Machine Learning 5 / 12

  6. Running the Network G. Corrado (disi) Hugin Machine Learning 6 / 12

  7. P(evidence) G. Corrado (disi) Hugin Machine Learning 7 / 12

  8. Computing the probability of a combination of states We want to compute P ( alarm = ” yes ” , johncalls = ” yes ” | burglary = ” yes ”) Exploting that P ( A , B ) = P ( A | B ) P ( B ) P ( alarm = ” yes ” , johncalls = ” yes ” | burglary = ” yes ”) = = P ( alarm = ” yes ” , johncalls = ” yes ” , burglary = ” yes ”) P ( burglary = ” yes ”) P ( alarm = ” yes ” , johncalls = ” yes ” | burglary = ” yes ”) = = 0 . 000846 = 0 . 846 0 . 001 G. Corrado (disi) Hugin Machine Learning 8 / 12

  9. Learning from Data Select Wizards, Learning Wizard Load the training file (small asia.dat) In structure constraints import model information from ChestClinic.net Select a learning algorithm Give to each state a prior of 1 RUN the learning algorithm Compile the learned network G. Corrado (disi) Hugin Machine Learning 9 / 12

  10. Analysis Wizard Select Wizards, Analysis Wizard Sample 100 new examples according to the learned network Check them in Data Source Analyze the quality of the generated data in Data Accuracy Clear the Data Source and Load the test file (test asia small.dat) Analyze the performance of classification of the learned network G. Corrado (disi) Hugin Machine Learning 10 / 12

  11. Assignment Consider the data file heart.dat the file contains 22 boolean features ( x 1 . . . x 22 ) and one boolean label ( y ) Random sample a train (100 examples) and a test (100 examples) set (possibly balanced w.r.t. y ) Learn the Bayesian networks (using NPC and Greedy search-and-score) Test the learned Bayesian networks Write a short report (2-3 pages) summarizing the methodology used and the results obtained. G. Corrado (disi) Hugin Machine Learning 11 / 12

  12. Assignment After completing the assignment submit it via email Send an email to gianluca.corrado@unitn.it (cc: passerini@disi.unitn.it) Subject: HuginSubmit Attachment: id name surname.zip containing: ◮ the script used to sample the data (named sampler.xx) ◮ the train and test sets (named train.dat and test.dat respectively) ◮ the learned networks (named npc.net and greedy.net) ◮ the report (named report.pdf) NOTE No group work This assignment is mandatory in order to enroll to the oral exam G. Corrado (disi) Hugin Machine Learning 12 / 12

Download Presentation
Download Policy: The content available on the website is offered to you 'AS IS' for your personal information and use only. It cannot be commercialized, licensed, or distributed on other websites without prior consent from the author. To download a presentation, simply click this link. If you encounter any difficulties during the download process, it's possible that the publisher has removed the file from their server.

Recommend


More recommend