Skip to content

Commit bf1d077

Browse files
author
linyiqun
committed
贝叶斯网络算法增加测试数据集说明
贝叶斯网络算法增加测试数据集说明
1 parent 760a674 commit bf1d077

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Others/DataMining_BayesNetwork/BayesNetWorkTool.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,11 @@ private void initDatas() {
5050
adatas = readDataFile(attachFilePath);
5151

5252
columnValues = datas.get(0).split(" ");
53-
// 从数据中取出属性名称行,列数值存入图中
53+
// 属性割名称代表事件B(盗窃),E(地震),A(警铃响).M(接到M的电话),J同M的意思,
54+
// 属性值都是y,n代表yes发生和no不发生
5455
this.attr2Column = new HashMap<>();
5556
for (int i = 0; i < columnValues.length; i++) {
57+
// 从数据中取出属性名称行,列数值存入图中
5658
this.attr2Column.put(columnValues[i], i);
5759
}
5860

0 commit comments

Comments
 (0)