1

I want to use Bayes Net Toolbox in matlab , especially score_dags(data, ns, dags) function .

I have:

-3 nodes

-All combinational subset of these nodes that create dag (will be 25 dags)

-Array with size (3,30) where each rows represent the data of nodes (e.g. row 1 for node 1)

When I call the function , if the parameter “data” is the array , and the parameter “dags” is the 25 dags then what it “ns” parameter?

I really appreciate any help you can provide.

4

1 回答 1

0

参数“ns”是节点大小,其中ns(i)是“...节点 i 可以采用的值的数量,或者如果 i 是连续值向量,则节点 i 的长度。”

换句话说,“ns”保存了每个节点的域大小。例如,如果节点 i 可以取值 {'red'、'green'、'blue'},则ns(i)= 3。

它记录在mk_bnet 的 .m 文件中score_dags将“ns”传递给score_family,然后将其传递给mk_bnet)。

于 2014-08-10T22:11:06.860 回答