-
Notifications
You must be signed in to change notification settings - Fork 1
/
asia.net
117 lines (100 loc) · 1.75 KB
/
asia.net
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
net
{
node_size = (50 50);
name = "Chest-clinic";
tree = "(Positive X-ray?,Has bronchitis,Dyspnoea?,Visit to Asia?,Smoker?,Has lung cancer,Has tuberculosis,Tuberculosis or cancer)";
UnBBayes_Color_Probabilistic_Description = "-256";
UnBBayes_Color_Probabilistic_Explanation = "-16711936";
UnBBayes_Color_Utility = "-16711681";
UnBBayes_Color_Decision = "-14336";
}
node X
{
label = "Positive X-ray?";
position = (28 29);
states = ("yes" "no");
}
node B
{
label = "Has bronchitis";
position = (400 200);
states = ("yes" "no");
}
node D
{
label = "Dyspnoea?";
position = (250 35);
states = ("yes" "no");
}
node A
{
label = "Visit to Asia?";
position = (35 301);
states = ("yes" "no");
}
node S
{
label = "Smoker?";
position = (299 301);
states = ("yes" "no");
}
node L
{
label = "Has lung cancer";
position = (200 200);
states = ("yes" "no");
}
node T
{
label = "Has tuberculosis";
position = (35 200);
states = ("yes" "no");
}
node E
{
label = "Tuberculosis or cancer";
position = (99 101);
states = ("yes" "no");
}
potential (X | E)
{
data = (( 0.98 0.02 )
( 0.05 0.95 ));
}
potential (B | S)
{
data = (( 0.6 0.4 )
( 0.3 0.7 ));
}
potential (D | B E)
{
data = ((( 0.9 0.1 )
( 0.8 0.2 ))
(( 0.7 0.3 )
( 0.1 0.9 )));
}
potential (A)
{
data = ( 0.01 0.99 );
}
potential (S)
{
data = ( 0.5 0.5 );
}
potential (L | S)
{
data = (( 0.1 0.9 )
( 0.01 0.99 ));
}
potential (T | A)
{
data = (( 0.05 0.95 )
( 0.01 0.99 ));
}
potential (E | T L)
{
data = ((( 1.0 0.0 )
( 1.0 0.0 ))
(( 1.0 0.0 )
( 0.0 1.0 )));
}