From 995f6673b5e725d6907ccd4f8e25033e8524f116 Mon Sep 17 00:00:00 2001 From: ziejd2 Date: Mon, 28 Jan 2019 16:37:57 -0600 Subject: Deleting old versions of files --- sourcecodes/run_scripts/run_del_var | 8 ++++++++ sourcecodes/run_scripts/run_kfold | 18 ++++++++++++++++++ sourcecodes/run_scripts/run_loo | 17 +++++++++++++++++ sourcecodes/run_scripts/run_mod_edges | 24 ++++++++++++++++++++++++ sourcecodes/run_scripts/run_mod_str | 11 +++++++++++ sourcecodes/run_scripts/run_mod_str~ | 24 ++++++++++++++++++++++++ sourcecodes/run_scripts/run_octave | 7 +++++++ sourcecodes/run_scripts/run_octave_evd | 7 +++++++ sourcecodes/run_scripts/run_octave_inv | 7 +++++++ sourcecodes/run_scripts/run_prep_input | 7 +++++++ sourcecodes/run_scripts/run_test_set | 15 +++++++++++++++ 11 files changed, 145 insertions(+) create mode 100644 sourcecodes/run_scripts/run_del_var create mode 100644 sourcecodes/run_scripts/run_kfold create mode 100644 sourcecodes/run_scripts/run_loo create mode 100644 sourcecodes/run_scripts/run_mod_edges create mode 100644 sourcecodes/run_scripts/run_mod_str create mode 100644 sourcecodes/run_scripts/run_mod_str~ create mode 100644 sourcecodes/run_scripts/run_octave create mode 100644 sourcecodes/run_scripts/run_octave_evd create mode 100644 sourcecodes/run_scripts/run_octave_inv create mode 100644 sourcecodes/run_scripts/run_prep_input create mode 100644 sourcecodes/run_scripts/run_test_set (limited to 'sourcecodes/run_scripts') 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); -- cgit 1.4.1