We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 760a674 commit bf1d077Copy full SHA for bf1d077
Others/DataMining_BayesNetwork/BayesNetWorkTool.java
@@ -50,9 +50,11 @@ private void initDatas() {
50
adatas = readDataFile(attachFilePath);
51
52
columnValues = datas.get(0).split(" ");
53
- // 从数据中取出属性名称行,列数值存入图中
+ // 属性割名称代表事件B(盗窃),E(地震),A(警铃响).M(接到M的电话),J同M的意思,
54
+ // 属性值都是y,n代表yes发生和no不发生
55
this.attr2Column = new HashMap<>();
56
for (int i = 0; i < columnValues.length; i++) {
57
+ // 从数据中取出属性名称行,列数值存入图中
58
this.attr2Column.put(columnValues[i], i);
59
}
60
0 commit comments