📄 bayes_wizard_step3.php
字号:
<p>STEP 3 of 5: Enter disease priors.</p><?php$num_diseases = $_POST["num_diseases"];$num_symptoms = $_POST["num_symptoms"];$disease_labels = $_POST["disease_labels"];$symptom_labels = $_POST["symptom_labels"];$priors = $_POST["priors"];$likelihoods = $_POST["likelihoods"];?><table cellpadding='3' cellspacing='0' border='0'> <form method='post' action='<?php echo $PHP_SELF; ?>'> <input type='hidden' name='next_step' value='4'> <input type='hidden' name='num_diseases' value='<?php echo $num_diseases; ?>'> <input type='hidden' name='num_symptoms' value='<?php echo $num_symptoms; ?>'> <?php for ($h=0; $h < $num_diseases; $h++) { echo "<input type='hidden' name='disease_labels[]' value='$disease_labels[$h]'>"; } for ($h=0; $h < $num_symptoms; $h++) { echo "<input type='hidden' name='symptom_labels[]' value='$symptom_labels[$h]'>"; } for ($h=0; $h < $num_diseases; $h++) { for ($e=0; $e < $num_symptoms; $e++) { $value = $likelihoods[$h][$e]; echo "<input type='hidden' name='likelihoods[$h][$e]' value='$value'>\n"; } } for ($h=0; $h < $num_diseases; $h++) { ?> <tr> <td align='right'>Prior probability of <?php echo $disease_labels[$h]; ?></td> <td><input type='text' name='priors[]' value='<?php echo $priors[$h]; ?>'; size='5' maxlength='6'></td> </tr> <?php } ?> <tr> <td> <br> <input type='submit' value='Step 4 >>'> </td> </tr> </form> </table>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -