diff options
| author | ziejd2 | 2018-09-13 23:59:20 -0500 |
|---|---|---|
| committer | ziejd2 | 2018-09-13 23:59:20 -0500 |
| commit | e3f7237ffcb19f19db3b68777b5a94b89e07f66a (patch) | |
| tree | 554a8013776ebeae3e2976074020c09c2d1af8b0 /sourcecodes/add_inv.php | |
| parent | a7eb61ff7a09f39bee67014bf24b8919eaccfc19 (diff) | |
| download | BNW-e3f7237ffcb19f19db3b68777b5a94b89e07f66a.tar.gz | |
New parameter learning options
The main change here is in the parameter learning methods. The parameters that are learned at first (i.e., if there is no evidence) are the distributions that are found directly in the data. I had to create or significantly modify several BNT files for this. If there is evidence, the parameters are learned using a Dirichlet prior. This only required a couple of small changes to the BNW parameter learning files.
Diffstat (limited to 'sourcecodes/add_inv.php')
| -rw-r--r-- | sourcecodes/add_inv.php | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sourcecodes/add_inv.php b/sourcecodes/add_inv.php index c2953f85..25b7b7ba 100644 --- a/sourcecodes/add_inv.php +++ b/sourcecodes/add_inv.php @@ -1,6 +1,7 @@ <?php //include("restructuremap.php"); -$keyval=$_GET["My_key"]; +include("input_validate.php"); +$keyval=valid_keyval($_GET["My_key"]); function discretemap($textdata,$sym,$dmapdata) { @@ -181,6 +182,7 @@ else } include("mat_structure.php"); +$keyval = valid_keyval($keyval); structure_change($keyval); @@ -197,6 +199,7 @@ structure_change($keyval); //execute shell script for matlab // $cmd="./runmat_inv.sh $keyval"; // system($cmd); + shell_exec('./run_octave_inv '.$keyval); |
