about summary refs log tree commit diff
path: root/BNW_parameter_learning/runBN_initial.m
diff options
context:
space:
mode:
authorziejd22018-04-25 16:43:19 -0500
committerziejd22018-04-25 16:43:19 -0500
commit74b673ba4a706085201a5610b938ff98f08f641d (patch)
treecb39006ea1a39499e00dbbb0e0097087a4567031 /BNW_parameter_learning/runBN_initial.m
parenta781cb1ff2e7ae6de0f686bd02cd279261485b1e (diff)
downloadBNW-74b673ba4a706085201a5610b938ff98f08f641d.tar.gz
Bug fixes, code comments, and minor changes
Diffstat (limited to 'BNW_parameter_learning/runBN_initial.m')
-rw-r--r--BNW_parameter_learning/runBN_initial.m15
1 files changed, 14 insertions, 1 deletions
diff --git a/BNW_parameter_learning/runBN_initial.m b/BNW_parameter_learning/runBN_initial.m
index 43caf402..614accc5 100644
--- a/BNW_parameter_learning/runBN_initial.m
+++ b/BNW_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});