-
The source files will be compiled using
javac
with options-g -cp . -d ./build
per project specifications. After compilation, the new .class files can be run withjava -cp ./build
(see./Makefile
and How to execute program for further specifications or exact commands). -
Compile exact inference (ExactInferer)
- Run
make exact
in the project directory. This will only compile the program.
- Run
-
Compile approximate inference (ApproxInferer)
- Run
make approx
in the project directory. This will only compile the program.
- Run
-
Remove compiled files
- Run
make clean
in the project directory. This will delete all compiled .class files.
- Run
- ExactInferer arguments are formatted as follows:
filename.[xml/bif] QUERYVAR EVIDENCE1 value1 EVIDENCE2 value2 …
- Example: {ARGS} =
dog-problem.xml bowel-problem hear-bark true
- ApproxInferer arguments are formatted as follows:
#SAMPLES filename.[xml/bif] QUERYVAR EVIDENCE1 value1 EVIDENCE2 value2 …
- Example: {ARGS} =
10000 insurance.bif SocioEcon VehicleYear Older DrivingSkill SubStandard
- Execute compiled ExactInferer
java -cp ./build exact/App {ARGS}
- Execute compiled ApproxInferer
java -cp ./build approx/App {ARGS}