K2 algorithm for learning DAG structure in Bayesian network

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

Download
Download

You are now following this Submission

Cite As

Guangdi Li (2026). K2 algorithm for learning DAG structure in Bayesian network (https://au.mathworks.com/matlabcentral/fileexchange/23273-k2-algorithm-for-learning-dag-structure-in-bayesian-network), MATLAB Central File Exchange. Retrieved .

Categories

Find more on Networks in Help Center and MATLAB Answers

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.7.0

update description

Download
1.6.0

improve the efficiency of code by mex programming.

Download
1.4.0

Update the code to output the K2 score upon each node

Download
1.2.0

I improve the efficiency of this algorithm again.

Download
1.1.0

One file is missing, sorry, I add it again.

Download
1.0.0

Download