about summary refs log tree commit diff
path: root/sourcecodes/run_scripts
diff options
context:
space:
mode:
authorziejd22019-01-28 16:37:57 -0600
committerziejd22019-01-28 16:37:57 -0600
commit995f6673b5e725d6907ccd4f8e25033e8524f116 (patch)
tree5df08d9503394eab1190a01a640f3c338e8c74d6 /sourcecodes/run_scripts
parentbb9d93322abf825368dedaafc2376ef8fdfc1e2f (diff)
downloadBNW-995f6673b5e725d6907ccd4f8e25033e8524f116.tar.gz
Deleting old versions of files
Diffstat (limited to 'sourcecodes/run_scripts')
-rw-r--r--sourcecodes/run_scripts/run_del_var8
-rw-r--r--sourcecodes/run_scripts/run_kfold18
-rw-r--r--sourcecodes/run_scripts/run_loo17
-rw-r--r--sourcecodes/run_scripts/run_mod_edges24
-rw-r--r--sourcecodes/run_scripts/run_mod_str11
-rw-r--r--sourcecodes/run_scripts/run_mod_str~24
-rw-r--r--sourcecodes/run_scripts/run_octave7
-rw-r--r--sourcecodes/run_scripts/run_octave_evd7
-rw-r--r--sourcecodes/run_scripts/run_octave_inv7
-rw-r--r--sourcecodes/run_scripts/run_prep_input7
-rw-r--r--sourcecodes/run_scripts/run_test_set15
11 files changed, 145 insertions, 0 deletions
diff --git a/sourcecodes/run_scripts/run_del_var b/sourcecodes/run_scripts/run_del_var
new file mode 100644
index 00000000..0b1bdfdc
--- /dev/null
+++ b/sourcecodes/run_scripts/run_del_var
@@ -0,0 +1,8 @@
+#!/usr/bin/octave -qf
+cd ./data
+arg_list = argv(); 
+addpath("../bnt-master");
+addpath(genpathKPM("../bnt-master"));
+addpath("../parameter_learning");
+removeNodes(arg_list{1},arg_list{2});
+prepareInput(arg_list{2});
\ No newline at end of file
diff --git a/sourcecodes/run_scripts/run_kfold b/sourcecodes/run_scripts/run_kfold
new file mode 100644
index 00000000..f90a5428
--- /dev/null
+++ b/sourcecodes/run_scripts/run_kfold
@@ -0,0 +1,18 @@
+#!/usr/bin/octave -qf
+cd ./data
+arg_list = argv(); 
+addpath("../bnt-master");
+addpath(genpathKPM("../bnt-master"));
+addpath("../parameter_learning");
+fileout=strcat(arg_list{1},"kfoldCV.txt");
+delete(fileout);
+filename=strcat(arg_list{1},"kfoldCV_temp.txt");
+fout_temp=fopen(filename,'w');
+fprintf(fout_temp,arg_list{2});
+kfoldCrossValid(arg_list{1},arg_list{2},arg_list{3});
+fclose(fout_temp);
+delete(filename);
+
+
+command=strcat({"/home/jziebart/python/Python-2.7.15/python ../kfold_plotly.py "},arg_list{1});
+test=system(command);
diff --git a/sourcecodes/run_scripts/run_loo b/sourcecodes/run_scripts/run_loo
new file mode 100644
index 00000000..3ff4f4db
--- /dev/null
+++ b/sourcecodes/run_scripts/run_loo
@@ -0,0 +1,17 @@
+#!/usr/bin/octave -qf
+cd ./data
+arg_list = argv(); 
+addpath("../bnt-master");
+addpath(genpathKPM("../bnt-master"));
+addpath("../parameter_learning");
+filename=strcat(arg_list{1},"looCV.txt");
+delete(filename);
+filename=strcat(arg_list{1},"looCV_temp.txt");
+fout_temp=fopen(filename,'w');
+fprintf(fout_temp,arg_list{2});
+fclose(fout_temp);
+looCrossValid(arg_list{1},arg_list{2});
+delete(filename);
+
+command=strcat({"/home/jziebart/python/Python-2.7.15/python ../cv_plotly.py "},arg_list{1});
+test=system(command);
diff --git a/sourcecodes/run_scripts/run_mod_edges b/sourcecodes/run_scripts/run_mod_edges
new file mode 100644
index 00000000..30176e9c
--- /dev/null
+++ b/sourcecodes/run_scripts/run_mod_edges
@@ -0,0 +1,24 @@
+#!/usr/bin/octave -qf
+cd ./data
+arg_list = argv(); 
+addpath("../bnt-master");
+addpath(genpathKPM("../bnt-master"));
+addpath("../parameter_learning");
+modifyEdges(arg_list{1},arg_list{2});
+
+fname1=strcat(arg_list{1},"continuous_input.txt");
+fname2=strcat(arg_list{2},"continuous_input.txt");
+copyfile(fname1,fname2);
+
+fname1=strcat(arg_list{1},"continuous_input_orig.txt");
+fname2=strcat(arg_list{2},"continuous_input_orig.txt");
+copyfile(fname1,fname2);
+
+fname1=strcat(arg_list{1},"nnode.txt");
+fname2=strcat(arg_list{2},"nnode.txt");
+copyfile(fname1,fname2);
+
+fname1=strcat(arg_list{1},"name.txt");
+fname2=strcat(arg_list{2},"name.txt");
+copyfile(fname1,fname2);
+
diff --git a/sourcecodes/run_scripts/run_mod_str b/sourcecodes/run_scripts/run_mod_str
new file mode 100644
index 00000000..63439afd
--- /dev/null
+++ b/sourcecodes/run_scripts/run_mod_str
@@ -0,0 +1,11 @@
+#!/usr/bin/octave -qf
+cd ./data
+arg_list = argv(); 
+addpath("../bnt-master");
+addpath(genpathKPM("../bnt-master"));
+addpath("../parameter_learning");
+
+fname1=strcat(arg_list{1},"continuous_input_orig.txt");
+fname2=strcat(arg_list{2},"continuous_input_orig.txt");
+copyfile(fname1,fname2);
+
diff --git a/sourcecodes/run_scripts/run_mod_str~ b/sourcecodes/run_scripts/run_mod_str~
new file mode 100644
index 00000000..30176e9c
--- /dev/null
+++ b/sourcecodes/run_scripts/run_mod_str~
@@ -0,0 +1,24 @@
+#!/usr/bin/octave -qf
+cd ./data
+arg_list = argv(); 
+addpath("../bnt-master");
+addpath(genpathKPM("../bnt-master"));
+addpath("../parameter_learning");
+modifyEdges(arg_list{1},arg_list{2});
+
+fname1=strcat(arg_list{1},"continuous_input.txt");
+fname2=strcat(arg_list{2},"continuous_input.txt");
+copyfile(fname1,fname2);
+
+fname1=strcat(arg_list{1},"continuous_input_orig.txt");
+fname2=strcat(arg_list{2},"continuous_input_orig.txt");
+copyfile(fname1,fname2);
+
+fname1=strcat(arg_list{1},"nnode.txt");
+fname2=strcat(arg_list{2},"nnode.txt");
+copyfile(fname1,fname2);
+
+fname1=strcat(arg_list{1},"name.txt");
+fname2=strcat(arg_list{2},"name.txt");
+copyfile(fname1,fname2);
+
diff --git a/sourcecodes/run_scripts/run_octave b/sourcecodes/run_scripts/run_octave
new file mode 100644
index 00000000..3879280e
--- /dev/null
+++ b/sourcecodes/run_scripts/run_octave
@@ -0,0 +1,7 @@
+#!/usr/bin/octave -qf
+cd ./data
+arg_list = argv(); 
+addpath("../bnt-master");
+addpath(genpathKPM("../bnt-master"));
+addpath("../parameter_learning");
+runBN_initial(arg_list{1});
diff --git a/sourcecodes/run_scripts/run_octave_evd b/sourcecodes/run_scripts/run_octave_evd
new file mode 100644
index 00000000..9f661925
--- /dev/null
+++ b/sourcecodes/run_scripts/run_octave_evd
@@ -0,0 +1,7 @@
+#!/usr/bin/octave -qf
+cd ./data
+arg_list = argv(); 
+addpath("../bnt-master");
+addpath(genpathKPM("../bnt-master"));
+addpath("../parameter_learning");
+Predictmultiple(arg_list{1});
diff --git a/sourcecodes/run_scripts/run_octave_inv b/sourcecodes/run_scripts/run_octave_inv
new file mode 100644
index 00000000..f9e568e3
--- /dev/null
+++ b/sourcecodes/run_scripts/run_octave_inv
@@ -0,0 +1,7 @@
+#!/usr/bin/octave -qf
+cd ./data
+arg_list = argv(); 
+addpath("../bnt-master");
+addpath(genpathKPM("../bnt-master"));
+addpath("../parameter_learning");
+Predictmultipleintervention(arg_list{1});
diff --git a/sourcecodes/run_scripts/run_prep_input b/sourcecodes/run_scripts/run_prep_input
new file mode 100644
index 00000000..4611d880
--- /dev/null
+++ b/sourcecodes/run_scripts/run_prep_input
@@ -0,0 +1,7 @@
+#!/usr/bin/octave -qf
+cd ./data
+arg_list = argv(); 
+addpath("../bnt-master");
+addpath(genpathKPM("../bnt-master"));
+addpath("../parameter_learning");
+prepareInput(arg_list{1});
diff --git a/sourcecodes/run_scripts/run_test_set b/sourcecodes/run_scripts/run_test_set
new file mode 100644
index 00000000..dbf929f8
--- /dev/null
+++ b/sourcecodes/run_scripts/run_test_set
@@ -0,0 +1,15 @@
+#!/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});
+fclose(filename);
+filename=strcat(arg_list{1},"ts_upload.txt");
+delete(filename);
+
+command=strcat({"/home/jziebart/python/Python-2.7.15/python ../ts_plotly.py "},arg_list{1});
+test=system(command);