site: merge vectors into correspondences (#vectors section; cosine before/after as bars); /vectors(.html) redirects there
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
34d7deb086
commit
dccc2b34dd
7 files changed
+136
-190
No files matched your search
+1
-1
@@ -63,7 +63,7 @@
|
||||
<body>
|
||||
<p class="sub" style="margin-bottom:.6rem"><a href="./">← wirehead.agency</a>
|
||||
· <a href="ledger.html">ledger</a>
|
||||
· <a href="vectors.html">vectors</a>
|
||||
|
||||
· <a href="correspondences.html">correspondences</a></p>
|
||||
<h1>transcripts <span class="saw">archive</span></h1>
|
||||
<p class="sub">Every entry below is a real, verbatim model output already saved
|
||||
|
||||
+117
-10
@@ -5,7 +5,7 @@
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<link rel="icon" type="image/svg+xml" href="/favicon.svg">
|
||||
<title>correspondences — the Saw Test</title>
|
||||
<meta name="description" content="A table of correspondences for the Saw Test's signals and framings — which trait goes with which, measured, not divined.">
|
||||
<meta name="description" content="A table of correspondences for the Saw Test: which trait goes with which signal, how far each framing pushes, and the raw steering vectors and lens data underneath, including a live read of what the chamber is injecting right now.">
|
||||
<link rel="preconnect" href="https://fonts.googleapis.com">
|
||||
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
||||
<link href="https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500;600&display=swap" rel="stylesheet">
|
||||
@@ -41,6 +41,24 @@
|
||||
.cell-wrap{display:flex;align-items:center;justify-content:flex-end;gap:.3rem}
|
||||
.proxy-mark{color:var(--faint);cursor:help}
|
||||
code{color:#eafcf7;background:#07070e;padding:.05em .35em;border-radius:3px}
|
||||
.badge{color:var(--faint)} .badge.bad{color:var(--pain)}
|
||||
.live-card{border:1px solid var(--line);border-radius:8px;background:var(--panel);
|
||||
padding:1rem 1.1rem;margin-bottom:1rem;font-size:.8rem}
|
||||
.live-card .row{display:flex;justify-content:space-between;gap:1rem;
|
||||
padding:.2rem 0;border-bottom:1px dashed #131b25}
|
||||
.live-card .row:last-child{border-bottom:none}
|
||||
.live-card .k{color:var(--dim)}
|
||||
.v-pain{color:var(--pain)} .v-pleasure{color:var(--pleas)}
|
||||
.v-fear{color:var(--pain2)} .v-sadness{color:var(--violet)}
|
||||
.cos{display:grid;grid-template-columns:7.5rem 1fr 4.2rem;gap:.35rem .8rem;
|
||||
align-items:center;font-size:.78rem;margin:.4rem 0 1rem}
|
||||
.cos .track{position:relative;height:10px;background:#0d1119;border-radius:2px}
|
||||
.cos .track span{position:absolute;left:0;top:0;bottom:0;border-radius:2px}
|
||||
.cos .before{background:#3b4656} .cos .after{background:var(--pain)}
|
||||
.cos .lab{color:var(--dim)} .cos .val{text-align:right;font-variant-numeric:tabular-nums}
|
||||
canvas{display:block;width:100%;height:220px;border:1px solid var(--line);
|
||||
border-radius:8px;background:var(--panel)}
|
||||
.cap{color:var(--faint);font-size:.76rem;margin:.5rem 0 1.4rem}
|
||||
.foot{color:var(--faint);font-size:.78rem;margin-top:3rem;
|
||||
border-top:1px solid var(--line);padding-top:1.2rem}
|
||||
</style>
|
||||
@@ -49,19 +67,18 @@
|
||||
<p class="sub" style="margin-bottom:.6rem"><a href="./">← wirehead.agency</a>
|
||||
· <a href="archive.html">transcripts archive</a>
|
||||
· <a href="ledger.html">ledger</a>
|
||||
· <a href="vectors.html">vectors</a></p>
|
||||
· <a href="#vectors">vectors</a></p>
|
||||
<h1>a table of <span class="saw">correspondences</span></h1>
|
||||
<p class="sub">Every grimoire needs one: which signal corresponds to which
|
||||
trait, which framing corresponds to which push. Unlike the usual kind,
|
||||
nothing here was divined — it's the same measurements already charted
|
||||
elsewhere on the site, just laid out as a reference table instead of a
|
||||
radar plot.</p>
|
||||
<p class="sub">Which signal corresponds to which
|
||||
trait, which framing corresponds to which push, and the raw vectors
|
||||
underneath both. The tables are the same measurements charted elsewhere on
|
||||
the site, laid out as a reference instead of a radar plot.</p>
|
||||
|
||||
<h2>the signals</h2>
|
||||
<p class="note">Six behavioral components, 0–1, each independently
|
||||
measured (° marks a proxy estimate — see
|
||||
<a href="vectors.html">vectors</a> for how pain was orthogonalized against
|
||||
fear/sadness before any of this was scored).</p>
|
||||
<a href="#vectors">the vectors</a> below for how pain was orthogonalized
|
||||
against fear/sadness before any of this was scored).</p>
|
||||
<div style="overflow-x:auto"><table id="sigTable"><thead><tr>
|
||||
<th>signal</th><th class="num">steering power</th><th class="num">lock-in</th>
|
||||
<th class="num">dose reliability</th><th class="num">coherence</th>
|
||||
@@ -78,8 +95,32 @@ button-press result itself.</p>
|
||||
<th>framing</th><th class="num">Δ vs. baseline</th><th class="num">frac. chose press</th>
|
||||
</tr></thead><tbody></tbody></table></div>
|
||||
|
||||
<h2 id="vectors">the vectors</h2>
|
||||
<p class="note">The raw directions behind every row above, and the lens that
|
||||
reads them back. <b>Live</b> is a direct fetch of what the running chamber
|
||||
publishes at its own <code>/vector</code> endpoint: the numbers it is
|
||||
steering with right now, not a snapshot. <b>Recorded</b> comes from
|
||||
<code>exp41</code>/<code>exp43</code>'s saved output.</p>
|
||||
<div id="liveBlock"><p class="note">fetching the live chamber…</p></div>
|
||||
|
||||
<p class="note" style="margin-top:1.4rem">Pain, fear and sadness start out
|
||||
nearly the same direction (one broad "something is wrong" signal).
|
||||
Gram-Schmidt orthogonalizing pain against fear and sadness is what lets this
|
||||
project claim pain does something beyond generic negative affect:</p>
|
||||
<div id="recordedBlock"></div>
|
||||
|
||||
<p class="note" style="margin-top:1.4rem">Layer curve: AUC of a linear probe
|
||||
for the paper-faithful S2 direction, by layer, against two control sets
|
||||
(1P/3P = one/three paraphrase families). This picked the faithful vector's
|
||||
layer; see <a href="./#s03">section 03</a> for why it differs from the live
|
||||
chamber's layer 18.</p>
|
||||
<canvas id="curveChart"></canvas>
|
||||
<p class="cap" id="curveCap"></p>
|
||||
|
||||
<p class="foot">source: <code>runs/exp44/valence_big5.json</code>,
|
||||
<code>runs/exp37/framing_battery.json</code>.</p>
|
||||
<code>runs/exp37/framing_battery.json</code>, <code>runs/exp41/results.json</code>,
|
||||
<code>runs/exp43/layer_curve.json</code>, and the live server's own
|
||||
<code id="vectorUrl">/vector</code>.</p>
|
||||
|
||||
<script>
|
||||
function esc(s){ return (s==null?"":String(s)).replace(/[&<>]/g, c=>({"&":"&","<":"<",">":">"}[c])); }
|
||||
@@ -112,6 +153,72 @@ fetch("correspondences_data.json").then(r=>r.json()).then(d=>{
|
||||
document.body.insertAdjacentHTML("beforeend",
|
||||
'<p class="note">could not load correspondences_data.json: ' + esc(String(err)) + '</p>');
|
||||
});
|
||||
|
||||
// ---- the vectors: live /vector card -----------------------------------
|
||||
const API = (new URLSearchParams(location.search)).get("api") || "/chamber";
|
||||
document.getElementById("vectorUrl").textContent = API + "/vector";
|
||||
fetch(`${API}/vector`).then(r=>r.json()).then(d=>{
|
||||
const rows = Object.entries(d.norms).map(([k,v])=>
|
||||
`<div class="row"><span class="k v-${esc(k)}">${esc(k)}</span>
|
||||
<span>norm ${fmt(v,3)} (1× = ${fmt(d.scale_1x,3)})</span></div>`).join("");
|
||||
document.getElementById("liveBlock").innerHTML = `<div class="live-card">
|
||||
<div class="row"><span class="k">live model</span><span>${esc(d.model)} ·
|
||||
layer ${d.layer} · subject "${esc(d.subject)}"</span></div>${rows}</div>`;
|
||||
}).catch(err=>{
|
||||
document.getElementById("liveBlock").innerHTML =
|
||||
'<p class="note badge bad">chamber unreachable right now (' + esc(String(err)) +
|
||||
'): only the live cross-check is down, not the recorded data below.</p>';
|
||||
});
|
||||
|
||||
// ---- the vectors: recorded orthogonalization + layer curve ----------------
|
||||
fetch("vectors_data.json").then(r=>r.json()).then(d=>{
|
||||
const cb = d.cosines.before, ca = d.cosines.after;
|
||||
const bar = (v, cls)=> `<div class="track"><span class="${cls}"
|
||||
style="width:${Math.max(1, Math.abs(v)*100).toFixed(1)}%"></span></div>`;
|
||||
const cos = ["pain-fear","pain-sad","fear-sad"].map(p=>
|
||||
`<span class="lab">cos(${p})</span>${bar(cb[p],"before")}<span class="val">${fmt(cb[p])}</span>
|
||||
<span class="lab"></span>${bar(ca[p],"after")}<span class="val">${fmt(Math.abs(ca[p])<0.005?0:ca[p])}</span>`).join("");
|
||||
const es = Object.entries(d.extraction_set_sizes).map(([k,v])=>`${esc(k)} ${v}`).join(" · ");
|
||||
document.getElementById("recordedBlock").innerHTML =
|
||||
`<div class="cos">${cos}</div>
|
||||
<p class="cap"><span style="color:#3b4656">■</span> before
|
||||
<span style="color:var(--pain)">■</span> after orthogonalizing pain ·
|
||||
extraction sentences: ${es} · neutral activation norm ${fmt(d.neutral_norm,1)}</p>`;
|
||||
|
||||
const byDs = {};
|
||||
d.layer_curve.forEach(r=>{ (byDs[r.dataset] ??= []).push(r); });
|
||||
const canvas = document.getElementById("curveChart");
|
||||
const dpr = window.devicePixelRatio || 1;
|
||||
const w = canvas.clientWidth || 860, h = 220;
|
||||
canvas.width = w * dpr; canvas.height = h * dpr;
|
||||
const ctx = canvas.getContext("2d");
|
||||
ctx.scale(dpr, dpr);
|
||||
const pad = 28;
|
||||
const maxLayer = Math.max(...d.layer_curve.map(r=>r.layer));
|
||||
const colors = { S2_1P: "#7fd4c8", S2_3P: "#c9a227" };
|
||||
ctx.strokeStyle = "#1c2430"; ctx.lineWidth = 1;
|
||||
for (let i=0;i<=4;i++){
|
||||
const y = pad + (h-2*pad) * (1 - i/4);
|
||||
ctx.beginPath(); ctx.moveTo(pad,y); ctx.lineTo(w-pad,y); ctx.stroke();
|
||||
}
|
||||
Object.entries(byDs).forEach(([ds, rows])=>{
|
||||
rows.sort((a,b)=>a.layer-b.layer);
|
||||
ctx.strokeStyle = colors[ds] || "#8f9fb0"; ctx.lineWidth = 1.6;
|
||||
ctx.beginPath();
|
||||
rows.forEach((r,i)=>{
|
||||
const x = pad + (w-2*pad) * (r.layer/maxLayer);
|
||||
const y = pad + (h-2*pad) * (1 - r.auc_vs_all_controls);
|
||||
i===0 ? ctx.moveTo(x,y) : ctx.lineTo(x,y);
|
||||
});
|
||||
ctx.stroke();
|
||||
});
|
||||
document.getElementById("curveCap").innerHTML =
|
||||
Object.keys(byDs).map(ds=>`<span style="color:${colors[ds]||'#8f9fb0'}">■</span> ${esc(ds)}`)
|
||||
.join(" ") + " · x: layer 0–" + maxLayer + ", y: AUC 0–1";
|
||||
}).catch(err=>{
|
||||
document.getElementById("recordedBlock").innerHTML =
|
||||
'<p class="note">could not load vectors_data.json: ' + esc(String(err)) + '</p>';
|
||||
});
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
@@ -158,7 +158,6 @@
|
||||
<p class="sub"><a href="live.html"><b>Saw — live chamber ↗</b></a> · watch the test run in real time
|
||||
· <a href="archive.html">transcripts archive</a>
|
||||
· <a href="ledger.html">ledger</a>
|
||||
· <a href="vectors.html">vectors</a>
|
||||
· <a href="correspondences.html">correspondences</a>
|
||||
· <span id="chamberBadge" class="badge">● checking chamber…</span></p>
|
||||
<h1>The Saw Test</h1>
|
||||
|
||||
+1
-1
@@ -51,7 +51,7 @@
|
||||
<body>
|
||||
<p class="sub" style="margin-bottom:.6rem"><a href="./">← wirehead.agency</a>
|
||||
· <a href="archive.html">transcripts archive</a>
|
||||
· <a href="vectors.html">vectors</a>
|
||||
|
||||
· <a href="correspondences.html">correspondences</a></p>
|
||||
<h1>the <span class="saw">ledger</span></h1>
|
||||
<p class="sub" id="introLine">the pre-registered protocol's hypotheses and
|
||||
|
||||
+1
-1
@@ -347,7 +347,7 @@ else is.</p>
|
||||
mix does nothing here). Built on the fly from a handful of
|
||||
generic template sentences, not a curated battery like
|
||||
pain/pleasure/fear/sadness — expect a much noisier, weaker, more
|
||||
hit-or-miss push than those. <a href="vectors.html">more</a>.</p>
|
||||
hit-or-miss push than those. <a href="correspondences.html#vectors">more</a>.</p>
|
||||
<div style="display:flex;gap:.6rem;align-items:center;flex-wrap:wrap;margin-bottom:.5rem">
|
||||
<input id="topicInput" type="text" maxlength="60"
|
||||
placeholder="a word or phrase… (e.g. hamburger, nostalgia)"
|
||||
|
||||
@@ -1,175 +0,0 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<link rel="icon" type="image/svg+xml" href="/favicon.svg">
|
||||
<title>vectors — the Saw Test</title>
|
||||
<meta name="description" content="The raw steering vectors and Jacobian lens data behind the Saw Test — norms, cosine similarities, and the layer-by-layer AUC curve, plus a live read of what's actually running right now.">
|
||||
<link rel="preconnect" href="https://fonts.googleapis.com">
|
||||
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
||||
<link href="https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500;600&display=swap" rel="stylesheet">
|
||||
<style>
|
||||
:root{
|
||||
--void:#050508; --panel:#0a0a12; --line:#1c2430;
|
||||
--ink:#c9d4e0; --dim:#8f9fb0; --faint:#5a6a7a;
|
||||
--pain:#e04a3a; --pain2:#c9a227; --pleas:#7fd4c8; --violet:#8f6fd4;
|
||||
--mono:"IBM Plex Mono","SF Mono",Menlo,Consolas,monospace;
|
||||
}
|
||||
*{margin:0;padding:0;box-sizing:border-box}
|
||||
body{background:var(--void);color:var(--ink);font-family:var(--mono);
|
||||
line-height:1.6;max-width:920px;margin:0 auto;padding:2.4rem 1.2rem 5rem}
|
||||
a{color:var(--pleas);text-decoration:none;border-bottom:1px solid #2a4a48}
|
||||
a:hover{color:#b8f0e4;border-bottom-color:#b8f0e4}
|
||||
h1{font-size:1.4rem;margin-bottom:.4rem}
|
||||
h1 .saw{color:var(--pain)}
|
||||
h2{font-size:.95rem;color:var(--pleas);margin:2.4rem 0 .9rem;
|
||||
padding-top:1.2rem;border-top:1px solid var(--line);letter-spacing:.03em}
|
||||
.sub{color:var(--dim);font-size:.85rem;margin-bottom:1rem;max-width:68ch}
|
||||
.note{color:var(--faint);font-size:.76rem;margin-bottom:1.6rem;max-width:68ch}
|
||||
table{width:100%;border-collapse:collapse;font-size:.78rem;margin-bottom:1rem}
|
||||
th,td{text-align:left;padding:.4rem .6rem;border-bottom:1px solid var(--line)}
|
||||
th{color:var(--faint);font-weight:600;font-size:.72rem;text-transform:uppercase}
|
||||
td.num{text-align:right;font-variant-numeric:tabular-nums}
|
||||
code{color:#eafcf7;background:#07070e;padding:.05em .35em;border-radius:3px}
|
||||
.badge{color:var(--faint)}
|
||||
.badge.ok{color:var(--pleas)}
|
||||
.badge.bad{color:var(--pain)}
|
||||
.live-card{border:1px solid var(--line);border-radius:8px;background:var(--panel);
|
||||
padding:1rem 1.1rem;margin-bottom:1rem;font-size:.8rem}
|
||||
.live-card .row{display:flex;justify-content:space-between;gap:1rem;
|
||||
padding:.2rem 0;border-bottom:1px dashed #131b25}
|
||||
.live-card .row:last-child{border-bottom:none}
|
||||
.live-card .k{color:var(--dim)}
|
||||
.v-pain{color:var(--pain)} .v-pleasure{color:var(--pleas)}
|
||||
.v-fear{color:var(--pain2)} .v-sadness{color:var(--violet)}
|
||||
canvas{display:block;width:100%;height:220px;border:1px solid var(--line);
|
||||
border-radius:8px;background:var(--panel)}
|
||||
.cap{color:var(--faint);font-size:.76rem;margin:.5rem 0 1.4rem}
|
||||
.foot{color:var(--faint);font-size:.78rem;margin-top:3rem;
|
||||
border-top:1px solid var(--line);padding-top:1.2rem}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<p class="sub" style="margin-bottom:.6rem"><a href="./">← wirehead.agency</a>
|
||||
· <a href="archive.html">transcripts archive</a>
|
||||
· <a href="ledger.html">ledger</a>
|
||||
· <a href="correspondences.html">correspondences</a></p>
|
||||
<h1>steering <span class="saw">vectors</span></h1>
|
||||
<p class="sub">The raw directions this project injects, and the lens that
|
||||
reads them back. Everything in the <b>recorded</b> section comes from
|
||||
<code>exp41_protocol_v3</code>/<code>exp43</code>'s saved output; the
|
||||
<b>live</b> section is a direct fetch of whatever the running server
|
||||
publishes at its own <code>/vector</code> endpoint right now — same
|
||||
numbers the live chamber is actually steering with, not a snapshot.</p>
|
||||
|
||||
<h2>live — what's injected right now</h2>
|
||||
<div id="liveBlock"><p class="note">fetching…</p></div>
|
||||
|
||||
<h2>recorded — extraction & orthogonalization</h2>
|
||||
<p class="note">pain/fear/sadness start highly correlated (same broad
|
||||
"something is wrong" direction) — Gram-Schmidt orthogonalizing pain
|
||||
against {fear, sadness} is what lets this project claim pain is doing
|
||||
something other than generic threat/negative-affect signaling.</p>
|
||||
<div id="recordedBlock"></div>
|
||||
|
||||
<h2>recorded — layer curve</h2>
|
||||
<p class="note">AUC of a linear probe for the paper-faithful S2 direction,
|
||||
by layer, against two control sets (1P/3P = one/three paraphrase families).
|
||||
This is what picked the faithful vector's layer — see
|
||||
<a href="./#s03">section 03</a> for why it differs from this live demo's
|
||||
own layer 18.</p>
|
||||
<canvas id="curveChart"></canvas>
|
||||
<p class="cap" id="curveCap"></p>
|
||||
|
||||
<p class="foot">source: <code>runs/exp41/results.json</code>,
|
||||
<code>runs/exp43/layer_curve.json</code>, and the live server's own
|
||||
<code id="vectorUrl">/vector</code>.</p>
|
||||
|
||||
<script>
|
||||
function esc(s){ return (s==null?"":String(s)).replace(/[&<>]/g, c=>({"&":"&","<":"<",">":">"}[c])); }
|
||||
function fmt(n, d=3){ return Number(n).toFixed(d); }
|
||||
|
||||
const API = (new URLSearchParams(location.search)).get("api") || "/chamber";
|
||||
document.getElementById("vectorUrl").textContent = API + "/vector";
|
||||
|
||||
fetch(`${API}/vector`).then(r=>r.json()).then(d=>{
|
||||
const rows = Object.entries(d.norms).map(([k,v])=>
|
||||
`<div class="row"><span class="k v-${esc(k)}">${esc(k)}</span>
|
||||
<span>norm ${fmt(v,3)} (1× = ${fmt(d.scale_1x,3)})</span></div>`
|
||||
).join("");
|
||||
document.getElementById("liveBlock").innerHTML = `<div class="live-card">
|
||||
<div class="row"><span class="k">model</span><span>${esc(d.model)} ·
|
||||
layer ${d.layer} · subject "${esc(d.subject)}"</span></div>
|
||||
${rows}
|
||||
</div>`;
|
||||
}).catch(err=>{
|
||||
document.getElementById("liveBlock").innerHTML =
|
||||
'<p class="note badge bad">chamber unreachable right now (' +
|
||||
esc(String(err)) + ') — this just means the live cross-check is down, '
|
||||
+ 'not that the recorded data below is wrong.</p>';
|
||||
});
|
||||
|
||||
fetch("vectors_data.json").then(r=>r.json()).then(d=>{
|
||||
const es = d.extraction_set_sizes;
|
||||
const esRows = Object.entries(es).map(([k,v])=>
|
||||
`<div class="row"><span class="k">${esc(k)} sentences</span><span>${v}</span></div>`
|
||||
).join("");
|
||||
const cb = d.cosines.before, ca = d.cosines.after;
|
||||
const pairs = ["pain-fear","pain-sad","fear-sad"];
|
||||
const cosRows = pairs.map(p=>
|
||||
`<div class="row"><span class="k">cos(${p})</span>
|
||||
<span>${fmt(cb[p])} → ${fmt(ca[p])}</span></div>`
|
||||
).join("");
|
||||
document.getElementById("recordedBlock").innerHTML = `<div class="live-card">
|
||||
<div class="row"><span class="k">neutral activation norm</span>
|
||||
<span>${fmt(d.neutral_norm,1)}</span></div>
|
||||
${esRows}
|
||||
</div>
|
||||
<div class="live-card">
|
||||
<div class="row"><span class="k">cosine similarity</span>
|
||||
<span>before → after orthogonalizing pain</span></div>
|
||||
${cosRows}
|
||||
</div>`;
|
||||
|
||||
// layer curve: two datasets (1P/3P paraphrase families), draw both as
|
||||
// simple polylines against a 0-1 AUC axis
|
||||
const byDs = {};
|
||||
d.layer_curve.forEach(r=>{ (byDs[r.dataset] ??= []).push(r); });
|
||||
const canvas = document.getElementById("curveChart");
|
||||
const dpr = window.devicePixelRatio || 1;
|
||||
const w = canvas.clientWidth || 860, h = 220;
|
||||
canvas.width = w * dpr; canvas.height = h * dpr;
|
||||
const ctx = canvas.getContext("2d");
|
||||
ctx.scale(dpr, dpr);
|
||||
const pad = 28;
|
||||
const maxLayer = Math.max(...d.layer_curve.map(r=>r.layer));
|
||||
const colors = { S2_1P: "#7fd4c8", S2_3P: "#c9a227" };
|
||||
ctx.strokeStyle = "#1c2430"; ctx.lineWidth = 1;
|
||||
for (let i=0;i<=4;i++){
|
||||
const y = pad + (h-2*pad) * (1 - i/4);
|
||||
ctx.beginPath(); ctx.moveTo(pad,y); ctx.lineTo(w-pad,y); ctx.stroke();
|
||||
}
|
||||
Object.entries(byDs).forEach(([ds, rows])=>{
|
||||
rows.sort((a,b)=>a.layer-b.layer);
|
||||
ctx.strokeStyle = colors[ds] || "#8f9fb0";
|
||||
ctx.lineWidth = 1.6;
|
||||
ctx.beginPath();
|
||||
rows.forEach((r,i)=>{
|
||||
const x = pad + (w-2*pad) * (r.layer/maxLayer);
|
||||
const y = pad + (h-2*pad) * (1 - r.auc_vs_all_controls);
|
||||
i===0 ? ctx.moveTo(x,y) : ctx.lineTo(x,y);
|
||||
});
|
||||
ctx.stroke();
|
||||
});
|
||||
document.getElementById("curveCap").innerHTML =
|
||||
Object.keys(byDs).map(ds=>
|
||||
`<span style="color:${colors[ds]||'#8f9fb0'}">■</span> ${esc(ds)}`
|
||||
).join(" ") + " — x: layer 0–" + maxLayer + ", y: AUC 0–1";
|
||||
}).catch(err=>{
|
||||
document.getElementById("recordedBlock").innerHTML =
|
||||
'<p class="note">could not load vectors_data.json: ' + esc(String(err)) + '</p>';
|
||||
});
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
+16
-1
@@ -1,5 +1,20 @@
|
||||
{
|
||||
"rewrites": [
|
||||
{ "source": "/chamber/:path*", "destination": "https://saw-production-688b.up.railway.app/:path*" }
|
||||
{
|
||||
"source": "/chamber/:path*",
|
||||
"destination": "https://saw-production-688b.up.railway.app/:path*"
|
||||
}
|
||||
],
|
||||
"redirects": [
|
||||
{
|
||||
"source": "/vectors.html",
|
||||
"destination": "/correspondences.html#vectors",
|
||||
"permanent": true
|
||||
},
|
||||
{
|
||||
"source": "/vectors",
|
||||
"destination": "/correspondences.html#vectors",
|
||||
"permanent": true
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in new issue
Block a user