mirror of
https://github.com/Doctorado-ML/beflask.git
synced 2025-08-16 15:45:51 +00:00
59 lines
2.6 KiB
HTML
59 lines
2.6 KiB
HTML
<div class="float-right">
|
|
<input type="checkbox" id="compare" name="compare" {% if config["COMPARE"] %}{{ "checked" }}{% endif %}>
|
|
<span class="badge bg-info bg-small" onclick="$('#compare').click()">Comparing with best results</span>
|
|
</div>
|
|
<table id="file-table"
|
|
class="table table-striped table-hover table-bordered">
|
|
<thead>
|
|
<tr class="table-primary">
|
|
<th>Model</th>
|
|
<th>Metric</th>
|
|
<th>Platform</th>
|
|
<th>Date</th>
|
|
<th>Time</th>
|
|
<th>Stratified</th>
|
|
<th>Title</th>
|
|
<th>Score</th>
|
|
<th>
|
|
<button class="btn btn-primary btn-small btn-danger"
|
|
onclick="setCheckBoxes(false)">
|
|
<i class="mdi mdi-checkbox-multiple-blank"></i>
|
|
</button>
|
|
<button class="btn btn-primary btn-small btn-success"
|
|
onclick="setCheckBoxes(true)">
|
|
<i class="mdi mdi-checkbox-multiple-marked"></i>
|
|
</button>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
{% for file, data in files.items() %}
|
|
{% set parts = file.split('_') %}
|
|
{% set stratified = parts[6].split('.')[0] %}
|
|
<tr id="{{ file }}">
|
|
<td>{{ parts[2] }}</td>
|
|
<td>{{ parts[1] }}</td>
|
|
<td>{{ parts[3] }}</td>
|
|
<td>{{ parts[4] }}</td>
|
|
<td>{{ parts[5] }}</td>
|
|
<td>{{ 'True' if stratified =='1' else 'False' }}</td>
|
|
<td>{{ "%s" % data["title"] }}</td>
|
|
<td class="text-end">{{ "%.6f" % data["score"] }}</td>
|
|
<td>
|
|
{% set file_best = "best_results_" ~ parts[1] ~ "_" ~ parts[2] ~ ".json" %}
|
|
<button class="btn btn-primary btn-small"
|
|
onclick='location.href="{{ url_for("results.report", file_name=file) }}"'>
|
|
<i class="mdi mdi-table-eye"></i>
|
|
</button>
|
|
<button class="btn btn-primary btn-small"
|
|
onclick='location.href="{{ url_for("results.best", file_name=file_best) }}"'
|
|
hidden="true"
|
|
name="best_buttons">
|
|
<i class="mdi mdi-star-circle-outline"></i>
|
|
</button>
|
|
<input type="checkbox" name="selected_files" value="{{ file }}" />
|
|
</td>
|
|
</tr>
|
|
{% endfor %}
|
|
</tbody>
|
|
</table>
|