diff options
| author | ziejd2 | 2018-04-25 16:43:19 -0500 |
|---|---|---|
| committer | ziejd2 | 2018-04-25 16:43:19 -0500 |
| commit | 74b673ba4a706085201a5610b938ff98f08f641d (patch) | |
| tree | cb39006ea1a39499e00dbbb0e0097087a4567031 /sourcecodes/parameter_learning/runBN_initial.m | |
| parent | a781cb1ff2e7ae6de0f686bd02cd279261485b1e (diff) | |
| download | BNW-74b673ba4a706085201a5610b938ff98f08f641d.tar.gz | |
Bug fixes, code comments, and minor changes
Diffstat (limited to 'sourcecodes/parameter_learning/runBN_initial.m')
| -rw-r--r-- | sourcecodes/parameter_learning/runBN_initial.m | 15 |
1 files changed, 14 insertions, 1 deletions
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}); |
