Skip to content

alienbloodbank/Uncertain-Inference

Repository files navigation

CSC442: Intro to AI
Project 3: Uncertain Inference
November, 2019
Authors:
 - Soubhik Ghosh (netid: sghosh13)
 - Andrew Sexton (netid: asexton2)

Language: Rust

Source Files:
	- cd /src
        main.rs, bayes_net.rs, exact_inference.rs, gibbs_sampling.rs, inf_test.rs, like_weighting.rs, reject_sampling.rs, xml_parser.rs

Prerequisites:
	Rust (https://www.rust-lang.org/tools/install)

Build Instructions: (Optional)
	(1 level above src/)
	- 'cargo build' or 'cargo build --release'

Output
	- target/debug/bayes_nets
	- target/release/bayes_nets

Running Examples:
	(1 level above src/)
	- ./myBNExactInferencer sample_networks/aima-alarm.xml B J true M true
	- ./myBNApproxInferencer 10000 sample_networks/aima-alarm.xml B J true M true
	(Rare Case)
	If rust is not installed on system, then we provide a compiled executable.
	Use that to run examples as follows
	cd target/debug (or target/release)
 	- ./bayes_nets sample_networks/aima-alarm.xml B J true M true
	- ./bayes_nets 10000 sample_networks/aima-alarm.xml B J true M true