K2 algorithm for learning DAG structure in Bayesian network
by Lowell Guangdi
12 Mar 2009
(Updated 05 Aug 2009)
Code covered by the BSD License
This is the code of Cooper's K2 algorithm proposed in 1992, quick and convenient for using.
Download Now
|
Watch this File
|
| File Information |
| Description |
K2 algorithm is the most famous score-based algorithm in Bayesian netowrk in the last two decades. Specifically, it recovers the underlying distribution in the form of DAG efficiently. For details, please refer to Cooper's published paper[1]
Please start from "ControlCentor.m", here is a simple example for understanding how to use our code.
If there is any question, please let me know, i will help you as soon as possible.
I use rewritten the K2 by mex programming, if you know how to compile it, please try K2.c because this code is able to handle the variables as large as 1000 variables, much efficient. It's tested under linux both 32-bit and 64-bit.
[1] G. Cooper and E. Herskovitz, A Bayesian method for the induction of probabilistic networks from data, Machine Learning
9 (1992), 330–347. |
| MATLAB release |
MATLAB 7.6 (R2008a)
|
| Zip File Content |
|
| Other Files |
K2/ControlCentor.m, K2/K2.c, K2/k2.m, K2/Sample.mat, K2/subfunction/ConstructLGObj.m, K2/subfunction/GClosedFun.m, license.txt
|
|
Tags for This File
|
| Everyone's Tags |
|
| Tags I've Applied |
|
| Add New Tags |
Please login to tag files.
|
| Updates |
| 28 Mar 2009 |
One file is missing, sorry, I add it again. |
| 17 Jun 2009 |
I improve the efficiency of this algorithm again. |
| 27 Jun 2009 |
Update the code to output the K2 score upon each node |
| 05 Aug 2009 |
improve the efficiency of code by mex programming. |
|
MATLAB Central Terms of Use
NOTICE: Any content you submit to MATLAB Central, including personal information, is not subject to the protections which may be afforded information collected under other sections of The MathWorks, Inc. Web site. You are entirely responsible for
all content that you upload, post, e-mail, transmit or otherwise make available via MATLAB Central. The MathWorks does not control the content posted by visitors to MATLAB Central and, does not guarantee the accuracy, integrity, or quality of such content.
Under no circumstances will The MathWorks be liable in any way for any content not authored by The MathWorks, or any loss or damage of any kind incurred as a result of the use of any content posted, e-mailed, transmitted or otherwise made available
via MATLAB Central.
Read the complete Terms prior to use.
Contact us at files@mathworks.com