Page 1 of 1

Testing the Module (BDeu)

PostPosted: Wed Aug 06, 2014 5:55 pm
by M Charles
I am still verifying the correctness of this module. Anyway, here is one quick test.

The test uses 1000 records for a 3-node network of binary states. The data was generated from a network with no arcs and different probabilities (Node1 had 0.75:0.25, Node2 had 0.5:0.5, Node3 had 0.4:0.6).

The following image contains the scoring results of 25 different 3-node networks with the full double-floating point precision.

test.jpg
test.jpg (247.72 KiB) Viewed 1840 times

Re: Testing the Module (BDeu)

PostPosted: Wed Aug 06, 2014 7:28 pm
by M Charles
Here is another test with only 3 records:
Node1 Node2 Node3
1 1 0
0 0 0
1 0 1


test.jpg
test.jpg (248.45 KiB) Viewed 1837 times

Re: Testing the Module (BDeu)

PostPosted: Wed Aug 06, 2014 9:09 pm
by cwyoo
Michael Cho wrote:I am still verifying the correctness of this module. Anyway, here is one quick test.

The test uses 1000 records for a 3-node network of binary states. The data was generated from a network with no arcs and different probabilities (Node1 had 0.75:0.25, Node2 had 0.5:0.5, Node3 had 0.4:0.6).

The following image contains the scoring results of 25 different 3-node networks with the full double-floating point precision.

test.jpg


All equivalence classes seems correct,. Nice work. Did you also test on a larger (in terms of number of variables) dataset with a random structure (number of parents limited to 5)? You might use the hypertension genes data.

Re: Testing the Module (BDeu)

PostPosted: Wed Aug 06, 2014 9:20 pm
by cwyoo
Michael Cho wrote:Here is another test with only 3 records:
Node1 Node2 Node3
1 1 0
0 0 0
1 0 1


test.jpg


Try using the following data to verify the score:
Node1 Node2 Node3
1 1 0
0 0 1
1 0 1

Re: Testing the Module (BDeu)

PostPosted: Mon Jun 12, 2017 4:36 pm
by qxin001
After compiling chronic disease model on path two, the result like below:

qxin001@path-two:~/Desktop/Test$ cd chronic-disease-model.git/
qxin001@path-two:~/Desktop/Test/chronic-disease-model.git$ make clean
rm -rf build bin/model lib/libbnl.a
qxin001@path-two:~/Desktop/Test/chronic-disease-model.git$ make
g++ -isystem thirdparty/linux_x64/include -Iinclude -O0 -DDEBUG -g -Wall -Wextra -Werror -pedantic -c -o build/bnl/refcounted_dataset.o src/bnl/refcounted_dataset.cpp
In file included from include/bnl/random/algorithm/random_shuffle.hpp:10:0,
from src/bnl/refcounted_dataset.cpp:2:
include/bnl/random/randgen.hpp:16:45: fatal error: boost/random/mersenne_twister.hpp: No such file or directory
#include <boost/random/mersenne_twister.hpp>
^
compilation terminated.
make: *** [build/bnl/refcounted_dataset.o] Error 1