8fa36b774e
Key changes: - New: data_loader.py SQLite persistence with drop_sqlite_table - New: db_utils.py retry_on_lock decorator (3 retries, exponential backoff) - New: tool_registry.py with 27 MCP tools (filter_and_cluster, compute_scores, etc.) - New: tls_ref.py for TLS cipher/reference data - New: import_tlsdb.py management command - New: scripts/start_server.py for portable runtime - New: migrations 0003-0007 for SQLite table, display_id, llm fields - Changed: views.py unified pipeline worker, retry_run, display_id everywhere - Changed: models.py with display_id auto-assignment, run_type, sqlite_table, llm_thinking, tool_calls_json - Changed: urls.py added retry_run route - Changed: session_store.py robust JSON persistence - Changed: AGENTS.md v7 fix summary added - Changed: templates — globe rewrite (inertia/polar flip), auto.html (thinking/tool accordions), base.html (toast/config), all pages use display_id - Changed: run.bat PYTHONUTF8=1 - Deleted: entity_detector.py, entity_aggregator.py (replaced by filter_and_cluster clustering pipeline) - Test: 92/92 unit tests passing
63 lines
2.2 KiB
HTML
63 lines
2.2 KiB
HTML
{% extends 'base.html' %}
|
|
{% block title %}Cluster #{{ cluster.cluster_label }} - Run #{{ run.display_id }}{% endblock %}
|
|
{% block content %}
|
|
<div class="card">
|
|
<a href="{% url 'analysis:cluster_overview' run.display_id %}" style="color:#4361ee;text-decoration:none;font-size:0.9rem;">← Back to overview</a>
|
|
<h2 style="margin-top:0.5rem;">Cluster #{{ cluster.cluster_label }}</h2>
|
|
<p>{{ cluster.size }} entities ({{ cluster.proportion|floatformat:2 }}% of total)</p>
|
|
<p>Silhouette Score: {{ cluster.silhouette_score|floatformat:4|default:"-" }}</p>
|
|
</div>
|
|
|
|
<div class="grid-2">
|
|
<div class="card">
|
|
<h2>Feature Summary (top 50)</h2>
|
|
<table>
|
|
<thead>
|
|
<tr>
|
|
<th>Feature</th>
|
|
<th>Mean</th>
|
|
<th>Std</th>
|
|
<th>Median</th>
|
|
<th>Dist. Score</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
{% for f in features %}
|
|
<tr>
|
|
<td><code>{{ f.feature_name }}</code></td>
|
|
<td>{{ f.mean|floatformat:3|default:"-" }}</td>
|
|
<td>{{ f.std|floatformat:3|default:"-" }}</td>
|
|
<td>{{ f.median|floatformat:3|default:"-" }}</td>
|
|
<td>{{ f.distinguishing_score|floatformat:3|default:"-" }}</td>
|
|
</tr>
|
|
{% empty %}
|
|
<tr><td colspan="5">No features</td></tr>
|
|
{% endfor %}
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
|
|
<div class="card">
|
|
<h2>Entities (top 50)</h2>
|
|
<table>
|
|
<thead>
|
|
<tr>
|
|
<th>Entity</th>
|
|
<th></th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
{% for e in entities %}
|
|
<tr>
|
|
<td><code>{{ e.entity_value }}</code></td>
|
|
<td><a href="{% url 'analysis:entity_profile' e.id %}" class="btn btn-primary">Profile</a></td>
|
|
</tr>
|
|
{% empty %}
|
|
<tr><td colspan="2">No entities</td></tr>
|
|
{% endfor %}
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
{% endblock %}
|