Skip to content
Snippets Groups Projects
Commit 9c6307e7 authored by Maxime BURON's avatar Maxime BURON
Browse files

correction des exemples

parent f8af455e
No related branches found
No related tags found
No related merge requests found
......@@ -22,19 +22,19 @@ node C {
ID = "C";
}
node Ia {
node IA {
states = (0 1 );
label = "Ia";
ID = "Ia";
}
node Ib {
node IB {
states = (0 1 );
label = "Ib";
ID = "Ib";
}
node Ic {
node IC {
states = (0 1 );
label = "Ic";
ID = "Ic";
......@@ -56,17 +56,17 @@ potential ( C | B ) {
( 0.371633 0.628367)); % B=1
}
potential (Ia) {
potential (IA) {
data = ( 0.8 0.2);
}
potential ( Ib | A ) {
potential ( IB | A ) {
data =
(( 0.664707 0.335293) % A=0
( 0.344864 0.655136)); % A=1
}
potential ( Ic | B ) {
potential ( IC | B ) {
data =
(( 0.664707 0.335293) % B=0
( 0.344864 0.655136)); % B=1
......
net {
name = unnamedBN;
name = mar;
software = "aGrUM 1.17.1";
node_size = (50 50);
}
node B {
states = (0 1 );
label = "B";
ID = "B";
}
node A {
states = (0 1 );
label = "A";
ID = "A";
}
node Ia {
node B {
states = (0 1 );
label = "Ia";
ID = "Ia";
label = "B";
ID = "B";
}
node Ib {
node IB {
states = (0 1 );
label = "Ib";
ID = "Ib";
}
potential ( B | A ) {
data =
(( 0.515132 0.484868) % A=0
( 0.371633 0.628367)); % A=1
label = "IB";
ID = "IB";
}
potential (A) {
data = ( 0.561407 0.438593);
data = ( 0.6 0.4);
}
potential (Ib) {
data = ( 0.8 0.2);
potential ( B | A ) {
data =
(( 0.2 0.8) % A=0
( 0.6 0.4)); % A=1
}
potential ( Ia | B ) {
potential ( IB | A ) {
data =
(( 0.664707 0.335293) % B=0
( 0.344864 0.655136)); % B=1
(( 0.7 0.3) % A=0
( 0.3 0.7)); % A=1
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment