5.0

5.0 | 1 rating Rate this file 14 Downloads (last 30 days) File Size: 9.85 KB File ID: #23273
image thumbnail

K2 algorithm for learning DAG structure in Bayesian network

by Guangdi Li

 

12 Mar 2009 (Updated 05 Aug 2009)

This is the code of Cooper's K2 algorithm proposed in 1992, quick and convenient for using.

| 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)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (1)
28 Mar 2009 Guangdi Li

There is one file named 'DimensionRangeValue.m' is missing, I am sorry for any inconvenience of you working. The updated version will be published in next week (March 20) after Matlab Center checks it. Enjoying you using my codes.

Please login to add a comment or rating.
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.

Tag Activity for this File
Tag Applied By Date/Time
dag Guangdi Li 13 Mar 2009 13:22:05
bayesian network Guangdi Li 13 Mar 2009 13:22:06
data mining Guangdi Li 13 Mar 2009 13:22:06
bayesian network kim ?? 14 May 2010 07:30:30
dag kim ?? 14 Jul 2010 00:36:40
bayesian network Dinu K 10 Jan 2011 06:55:16

Contact us at files@mathworks.com