-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathREADME
More file actions
35 lines (28 loc) · 1.01 KB
/
README
File metadata and controls
35 lines (28 loc) · 1.01 KB
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
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