about summary refs log tree commit diff
path: root/sourcecodes/run_test_set
diff options
context:
space:
mode:
authorziejd22018-09-13 23:59:20 -0500
committerziejd22018-09-13 23:59:20 -0500
commite3f7237ffcb19f19db3b68777b5a94b89e07f66a (patch)
tree554a8013776ebeae3e2976074020c09c2d1af8b0 /sourcecodes/run_test_set
parenta7eb61ff7a09f39bee67014bf24b8919eaccfc19 (diff)
downloadBNW-e3f7237ffcb19f19db3b68777b5a94b89e07f66a.tar.gz
New parameter learning options
The main change here is in the parameter learning methods.  The parameters that are learned at first (i.e., if there is no evidence) are the distributions that are found directly in the data. I had to create or significantly modify several BNT files for this.

If there is evidence, the parameters are learned using a Dirichlet prior. This only required a couple of small changes to the BNW parameter learning files.
Diffstat (limited to 'sourcecodes/run_test_set')
-rw-r--r--sourcecodes/run_test_set11
1 files changed, 11 insertions, 0 deletions
diff --git a/sourcecodes/run_test_set b/sourcecodes/run_test_set
new file mode 100644
index 00000000..503032f0
--- /dev/null
+++ b/sourcecodes/run_test_set
@@ -0,0 +1,11 @@
+#!/usr/bin/octave -qf
+cd ./data
+arg_list = argv(); 
+addpath("../bnt-master");
+addpath(genpathKPM("../bnt-master"));
+addpath("../parameter_learning");
+filename=strcat(arg_list{1},"ts_output.txt");
+delete(filename);
+testSetPredictions(arg_list{1});
+filename=strcat(arg_list{1},"ts_upload.txt");
+delete(filename);
\ No newline at end of file