about summary refs log tree commit diff
path: root/sourcecodes/run_scripts/run_kfold
diff options
context:
space:
mode:
Diffstat (limited to 'sourcecodes/run_scripts/run_kfold')
-rw-r--r--sourcecodes/run_scripts/run_kfold15
1 files changed, 6 insertions, 9 deletions
diff --git a/sourcecodes/run_scripts/run_kfold b/sourcecodes/run_scripts/run_kfold
index f90a5428..371649e4 100644
--- a/sourcecodes/run_scripts/run_kfold
+++ b/sourcecodes/run_scripts/run_kfold
@@ -1,18 +1,15 @@
 #!/usr/bin/octave -qf
-cd ./data
-arg_list = argv(); 
-addpath("../bnt-master");
-addpath(genpathKPM("../bnt-master"));
-addpath("../parameter_learning");
+source("./run_scripts/path_cd.m")
+arg_list = argv();
 fileout=strcat(arg_list{1},"kfoldCV.txt");
 delete(fileout);
+fileout=strcat(arg_list{1},"kfold_plotly.html");
+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});
+command=cstrcat("/var/www/html/compbio/BNW_1.3/bnw-env/bin/python3 ",base_dir,"/kfold_plotly.py ",arg_list{1});
 test=system(command);
+delete(filename);