CMXX - Initial ML training
This commit is contained in:
@@ -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'].'">
|
||||
|
||||
Reference in New Issue
Block a user