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/cv_predictions.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/cv_predictions.php')
| -rw-r--r-- | sourcecodes/cv_predictions.php | 94 |
1 files changed, 94 insertions, 0 deletions
diff --git a/sourcecodes/cv_predictions.php b/sourcecodes/cv_predictions.php new file mode 100644 index 00000000..811f0c35 --- /dev/null +++ b/sourcecodes/cv_predictions.php @@ -0,0 +1,94 @@ +<?php + +include("header_new.inc"); +include("input_validate.php"); + +$keyval=valid_keyval($_GET["My_key"]); + +?> + +<!-- Site navigation menu --> +<ul class="navbar2"> + <li><p>Network ID:<br><?php print($keyval);?></p></li> +</ul> +<ul class="navbar"> + <li><a href="javascript:void(0);" + NAME="Network" title="Network" onClick=window.open("layout.php?My_key=<?php print($keyval);?>","_self");>Return to network</a> + <li><a href="help.php">Help</a> + <li><a href="home.php">Home</a> + + +</ul> + + +<!-- Main content --> +<div id="outer"> +<h1>Cross-validation and predictions</h1> +<br> +<p align="justify"> +<ul class="listbar"> +<?php + $loo_file1="./data/".$keyval."looCV_temp.txt"; + $loo_file2="./data/".$keyval."looCV.txt"; +if(file_exists($loo_file1)) + {?> +<li>1: Leave-one-out cross-validation predictions are being calculated. + <a href="cv_predictions.php?My_key=<?php print($keyval);?>">Refresh and update status</a> +<br> +</li> + <?php + } else if(file_exists($loo_file2)) { + ?> +<li>1: <a href="cross_valid.php?My_key=<?php print($keyval);?>" target='_self'>Leave-one-out cross-validation results are available.</a></li> + <?php + } else { + ?> + <li>1: <a href="cross_valid.php?My_key=<?php print($keyval);?>" target='_self'>Perform leave-one-out cross-validation</a></li> + <?php + } + ?> +<?php + $kfold_file1="./data/".$keyval."kfoldCV_temp.txt"; + $kfold_file2="./data/".$keyval."kfoldCV.txt"; +if(file_exists($kfold_file1)) + {?> +<li>2: k-fold cross-validation predictions are being calculated. + <a href="cv_predictions.php?My_key=<?php print($keyval);?>">Refresh and update status</a> +<br> +</li> + <?php + } else if(file_exists($kfold_file2)) { + ?> +<li>2: <a href="kfold_cv.php?My_key=<?php print($keyval);?>" target='_self'>k-fold cross-validation results are available</a></li> + <?php + } else { + ?> + <li>2: <a href="kfold_cv.php?My_key=<?php print($keyval);?>" target='_self'>Perform k-fold cross-validation</a></li> + <?php + } + ?> +<?php + $ts_file1="./data/".$keyval."ts_upload.txt"; + $ts_file2="./data/".$keyval."ts_output.txt"; +if(file_exists($ts_file1)) + {?> +<li>3: Test set predictions are being calculated. + <a href="cv_predictions.php?My_key=<?php print($keyval);?>">Refresh and update status</a> +<br> +</li> + <?php + } else if(file_exists($ts_file2)) { + ?> +<li>3: <a href="test_set_predictions.php?My_key=<?php print($keyval);?>" target='_self'>Test set predictions are available</a></li> + <?php + } else { + ?> + <li>3: <a href="test_set_predictions.php?My_key=<?php print($keyval);?>" target='_self'>Make predictions using a test data set</a></li> + <?php + } + ?> +</ul> +</p> +</div> +</body> +</html> |
