CMXX - Initial ML training

This commit is contained in:
“VeLiTi”
2024-09-30 10:20:25 +02:00
parent e51b1986ae
commit c9717cbdf9
5 changed files with 283 additions and 31 deletions

View File

@@ -132,11 +132,41 @@ $view .= '<div class="content-block tab-content active">
<input id="name" type="text" name="software" placeholder="'.$product_version_software.'" value="'.$products_versions['software'].'" required>
';
if (isset($_GET['rowID']) && $_GET['rowID'] !=''){
if (isset($_GET['rowID']) && $_GET['rowID'] !='' && !empty($products_versions['measurement'])){
$measurements = json_decode($products_versions['measurement'],true);
$view .= '
<label for="">'.$product_version_measurement.'</label>
<textarea><pre>'.$products_versions['measurement'].'</pre></textarea>
<div class="table">
<table>
<thead>
<tr>
<td>Test</td>
<td>N</td>
<td>Average</td>
<td>Median</td>
<td>STdev</td>
</tr>
</thead>
<tbody>
';
foreach ($measurements as $name => $measurement){
$view .='
<tr>
<td>'.$name.'</td>
<td>'.$measurement['n'].'</td>
<td>'.$measurement['average'].'</td>
<td>'.$measurement['median'].'</td>
<td>'.$measurement['stdev'].'</td>
</tr>
';
}
$view .= '</tbody>
</table>
</div>';
}
$view .= '
<input type="hidden" name="rowID" value="'.$products_versions['rowID'].'">