资源简介
利用K2算法从数据中学习贝叶斯网络结构
# include "mex.h"
# include "math.h"
/*[ DAG, K2Score ] = K2( LGObj,Order,u,PreDAG )
代码片段和文件信息
%ControlCentor
% when you test the codeplease correct the directory in next command
load(‘G:\K2\Sample.mat‘);
% Sample is a variable that saves our training database.
LGObj = ConstructLGObj( Sample); % construct an object
Order = [3 4 1 2 5 8 7 10 9 6]; % Order is the ordering of the input in K2 algorithm
u = 4; % u is the maximum edges of node in output graph.
[ DAGK2Score ] = k2( LGObjOrderu )
h = view(biograph( DAG ))
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2009-03-28 12:15 K2\
文件 2041 2009-06-28 00:25 K2\k2.m
文件 444 2009-06-28 00:27 K2\ControlCentor.m
目录 0 2009-03-28 12:15 K2\subfunction\
文件 2584 2009-06-17 23:51 K2\subfunction\GClosedFun.m
文件 1597 2009-06-17 23:50 K2\subfunction\ConstructLGObj.m
文件 3600 2009-03-13 02:17 K2\Sample.mat
文件 7854 2009-07-27 18:27 K2\K2.c
文件 1335 2009-08-05 10:53 license.txt
评论
共有 条评论