⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 bayes_wizard_step4.php

📁 PHP NaiveBayes源代码
💻 PHP
字号:
<p>STEP 4 of 5: Enter likelihood of symptoms given the disease.</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='5'>  <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]'>\n";    }  for ($h=0; $h < $num_symptoms; $h++) {        echo "<input type='hidden' name='symptom_labels[]' value='$symptom_labels[$h]'>\n";     }  for ($h=0; $h < $num_diseases; $h++) {      echo "<input type='hidden' name='priors[]' value='$priors[$h]'>\n";    }  ?>  <tr>    <td>&nbsp;</td>    <?php    for ($e=0; $e < $num_symptoms; $e++) {               echo "<td align='center'><b>".$symptom_labels[$e]."</b></td>";    }      ?> </tr> <?php    for($h=0; $h < $num_diseases; $h++) {   echo "<tr>";   echo "<td><b>".$disease_labels[$h]."</b></td>";   for ($e=0; $e < $num_symptoms; $e++) {          ?>     <td align='center'>       <?php       $value = $likelihoods[$h][$e];       echo "<input type='text' name='likelihoods[$h][$e]' value='$value' size='4' maxlength='5'>";       ?>     </td>     <?php   }   echo "</tr>";  }  $num_cols = $num_symptoms + 1;  ?>    <tr>    <td colspan='<?php echo $num_cols ?>'>      <br>      <input type='submit' value='Step 5 >>'>    </td>  </tr>  </form>     </table>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -