Tune page: parameter history chart, two-column layout, collapsed settings
Record every SPSA parameter value as results arrive (media/spsa_history/<id>.json, same idea as the LLR history). The Tune page plots how far each parameter has moved from its start, as a share of its allowed range. Hovering or pinning a parameter name follows its line. The page is now a main column (progress, history, results, details) plus a side column (actions, settings), and the settings and parameter details start collapsed. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01TyAt5S5MAwLBY2idan1SwU
This commit is contained in:
1 parent
9aa7678b62
commit
de5ec59ece
5 files changed
+851
-8
No files matched your search
@@ -6,6 +6,8 @@
|
||||
{% block scripts %}
|
||||
<link rel="stylesheet" href="{% static 'workload.css' %}?{{ static_version }}">
|
||||
<link rel="stylesheet" href="{% static 'spsa_panel.css' %}?{{ static_version }}">
|
||||
<link rel="stylesheet" href="{% static 'spsa_chart.css' %}?{{ static_version }}">
|
||||
<script src="{% static 'spsa_chart.js' %}?{{ static_version }}" defer></script>
|
||||
<script src="{% static 'spsa_panel.js' %}?{{ static_version }}" defer></script>
|
||||
<script src="{% static 'copy_text.js' %}?{{ static_version }}"></script>
|
||||
<script src="{% static 'llr_history.js' %}?{{ static_version }}" defer></script>
|
||||
@@ -15,10 +17,11 @@
|
||||
|
||||
{% block content %}
|
||||
|
||||
<div class="workload-container">
|
||||
<div class="workload-container{% if type == "TUNE" %} tune-page{% endif %}">
|
||||
{% if type == "TUNE" %}<div class="tune-side">{% endif %}
|
||||
|
||||
<div id="config" class="card">
|
||||
<header class="card-head"><h2 class="card-title">Configuration</h2></header>
|
||||
{% if type == "TUNE" %}<details id="config" class="card config-fold"><summary><span class="card-title">Settings</span><span class="config-hint">Engine, network, book</span></summary>{% else %}<div id="config" class="card">{% endif %}
|
||||
{% if type != "TUNE" %}<header class="card-head"><h2 class="card-title">Configuration</h2></header>{% endif %}
|
||||
<table class="test-config left-align wrappable">
|
||||
|
||||
<tr><td class="td-label">Author</td><td>{{workload.author|capfirst}}</td></tr>
|
||||
@@ -69,7 +72,7 @@
|
||||
{% endif %}
|
||||
|
||||
</table>
|
||||
</div>
|
||||
{% if type == "TUNE" %}</details>{% else %}</div>{% endif %}
|
||||
|
||||
<div id="actions" class="card">
|
||||
<header class="card-head"><h2 class="card-title">Actions</h2></header>
|
||||
@@ -214,6 +217,8 @@
|
||||
|
||||
<!-- SPSA Paramater Summary, for Tunes -->
|
||||
{% if type == "TUNE" %}
|
||||
</div><!-- /tune-side -->
|
||||
<div class="tune-main">
|
||||
{% with panel=workload|spsa_param_panel %}
|
||||
<section id="spsa-panel" class="card spsa-panel">
|
||||
<header class="card-head"><h2 class="card-title">Tuning progress</h2></header>
|
||||
@@ -231,6 +236,14 @@
|
||||
</dl>
|
||||
</div>
|
||||
|
||||
<div class="spsa-history">
|
||||
<div class="spsa-history-head">
|
||||
<h3>Movement since the start</h3>
|
||||
<p>Each line is one parameter, as a share of its allowed range. Point at a name below to follow it, or click it to keep it on the chart.</p>
|
||||
</div>
|
||||
{{ workload|spsa_history_chart }}
|
||||
</div>
|
||||
|
||||
<div class="spsa-tools">
|
||||
<input id="spsa-filter" type="search" placeholder="Filter parameters" aria-label="Filter parameters by name" autocomplete="off">
|
||||
<select id="spsa-sort" aria-label="Sort parameters">
|
||||
@@ -243,7 +256,7 @@
|
||||
<ol id="spsa-rows" class="spsa-rows">
|
||||
{% for p in panel.params %}
|
||||
<li class="spsa-row{% if p.bound %} at-bound{% endif %}" data-name="{{ p.name|lower }}" data-drift="{{ p.drift }}" data-index="{{ forloop.counter0 }}">
|
||||
<span class="spsa-name">{{ p.name }}</span>
|
||||
<button type="button" class="spsa-name" aria-pressed="false" title="Show on the chart">{{ p.name }}</button>
|
||||
<div class="spsa-track-wrap">
|
||||
<div class="spsa-track" role="img" aria-label="{{ p.name }} is {{ p.value }}, within {{ p.min }} to {{ p.max }}, started at {{ p.start }}{% if p.bound %}, at its {{ p.bound }} limit{% endif %}" title="Start {{ p.start }}, now {{ p.value }}, C {{ p.c }}, R {{ p.r }}{% if p.bound %}. At its {{ p.bound }} limit.{% endif %}">
|
||||
<span class="spsa-drift" style="left: {{ p.left }}%; width: {{ p.width }}%"></span>
|
||||
@@ -267,8 +280,9 @@
|
||||
</section>
|
||||
{% endwith %}
|
||||
|
||||
<div id="parameters" class="card">
|
||||
<header class="card-head"><h2 class="card-title">Parameter details</h2></header>
|
||||
<details id="parameters" class="card config-fold">
|
||||
<summary><span class="card-title">Parameter details</span><span class="config-hint">Start, limits, C and R</span></summary>
|
||||
|
||||
<table class="stripes wrappable">
|
||||
|
||||
<tr class="table-header">
|
||||
@@ -289,7 +303,7 @@
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</table>
|
||||
</div>
|
||||
</details>
|
||||
{% endif %}
|
||||
|
||||
<div id="results" class="card">
|
||||
@@ -323,6 +337,7 @@
|
||||
{% endfor %}
|
||||
</table>
|
||||
</div>
|
||||
{% if type == "TUNE" %}</div><!-- /tune-main -->{% endif %}
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
Reference in new issue
Block a user