From 74b673ba4a706085201a5610b938ff98f08f641d Mon Sep 17 00:00:00 2001 From: ziejd2 Date: Wed, 25 Apr 2018 16:43:19 -0500 Subject: Bug fixes, code comments, and minor changes --- sourcecodes/parameter_learning/runBN_initial.m | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) (limited to 'sourcecodes/parameter_learning/runBN_initial.m') diff --git a/sourcecodes/parameter_learning/runBN_initial.m b/sourcecodes/parameter_learning/runBN_initial.m index c2dec164..16ce06dc 100644 --- a/sourcecodes/parameter_learning/runBN_initial.m +++ b/sourcecodes/parameter_learning/runBN_initial.m @@ -1,4 +1,17 @@ function runBN_initial(pre) +% runBN_initial is used to create the net_figure file +% for a network without entered evidence or intervention. +% +% The input is 'pre'-- the prefix for the network and data +% in BNW. It uses this identifier to read several files from +% BNW. +% +% The output is ???net_figure.txt. It also calls writeParameters +% to write the parameter file. +% +% runBN_initial is called by run_octave in the 'sourcecodes' directory. +% + sfile=strcat(pre,'structure_input.txt'); dfile=strcat(pre,'continuous_input.txt'); @@ -21,7 +34,7 @@ s=std(data,0,1); m=mean(data); for i=1:nnodes - fprintf(mapval,'%s\t%d\t%f\t%f\n',labelsold{i},node_sizes(i),s(i),m(i)); + fprintf(mapval,'%s\t%f\t%f\n',labelsold{i},s(i),m(i)); end fprintf(mapfile,'%s',labels{1}); -- cgit 1.4.1