rootdepth condition in se #172

Merged
rektdie merged 1 commits from rootdepth-se into main 2026-03-29 16:37:53 +02:00
3 changed files with 476 additions and 1 deletions

No files matched your search

+473
View File
@@ -0,0 +1,473 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>Eleanor NNUE Visualizer</title>
<style>
:root {
color-scheme: dark;
--bg-0: #08060d;
--bg-1: #120d18;
--panel: rgba(20, 16, 29, 0.88);
--panel-2: rgba(25, 18, 35, 0.94);
--line: rgba(255, 255, 255, 0.08);
--text: #f7f1e8;
--muted: #c7bccf;
--muted-2: #9e92ad;
--shadow: rgba(0, 0, 0, 0.38);
--legend: linear-gradient(90deg, #9ad1fb 0%, #284978 20%, #07050a 50%, #5a167f 72%, #fcffa4 100%);
}
* { box-sizing: border-box; }
body {
margin: 0;
color: var(--text);
font-family: "Avenir Next", "Segoe UI", "Helvetica Neue", sans-serif;
background:
radial-gradient(circle at top left, rgba(255, 141, 36, 0.18), transparent 26%),
radial-gradient(circle at top right, rgba(143, 52, 224, 0.18), transparent 28%),
linear-gradient(180deg, var(--bg-0) 0%, var(--bg-1) 48%, #0d0911 100%);
min-height: 100vh;
}
main { max-width: 1440px; margin: 0 auto; padding: 30px 22px 56px; }
h1, h2, h3, p { margin: 0; }
h1 {
font-size: clamp(2.1rem, 4vw, 3.8rem);
line-height: 0.96;
letter-spacing: -0.04em;
margin-bottom: 10px;
}
h2 { font-size: 1.15rem; margin-bottom: 8px; }
h3 { font-size: 1rem; margin-bottom: 6px; }
code {
font-family: "Iosevka", "JetBrains Mono", "SFMono-Regular", monospace;
background: rgba(255, 255, 255, 0.06);
border: 1px solid rgba(255, 255, 255, 0.08);
border-radius: 999px;
padding: 4px 10px;
color: #fff4d8;
}
.hero {
display: grid;
gap: 18px;
padding: 24px;
background: linear-gradient(180deg, rgba(31, 22, 43, 0.92), rgba(17, 13, 25, 0.94));
border: 1px solid var(--line);
border-radius: 26px;
box-shadow: 0 28px 80px var(--shadow);
margin-bottom: 22px;
}
.hero p { color: var(--muted); max-width: 82ch; line-height: 1.55; }
.hero-meta {
display: flex;
flex-wrap: wrap;
gap: 10px;
align-items: center;
}
.hero-meta span {
display: inline-flex;
align-items: center;
padding: 8px 12px;
border-radius: 999px;
background: rgba(255, 255, 255, 0.05);
border: 1px solid rgba(255, 255, 255, 0.08);
color: #f8eacb;
font-size: 0.92rem;
}
.legend-block {
display: grid;
gap: 9px;
max-width: 460px;
}
.legend-bar {
height: 16px;
border-radius: 999px;
background: var(--legend);
border: 1px solid rgba(255, 255, 255, 0.09);
box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.35);
}
.legend-labels {
display: flex;
justify-content: space-between;
color: var(--muted);
font-size: 0.9rem;
}
.section {
margin-top: 28px;
}
.section-copy {
display: grid;
gap: 8px;
margin-bottom: 14px;
}
.section-copy p { color: var(--muted); line-height: 1.5; }
.panel {
background: var(--panel);
border: 1px solid var(--line);
border-radius: 22px;
padding: 18px;
box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
}
.atlas-frame {
background: #000000;
border: 1px solid rgba(255, 255, 255, 0.04);
border-radius: 18px;
padding: 10px;
box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
}
.atlas-stack {
display: grid;
gap: 10px;
}
.atlas-frame-compact {
padding: 6px;
border-radius: 14px;
}
.atlas-stack-compact {
gap: 5px;
}
.atlas-row-wrap {
display: grid;
gap: 8px;
}
.atlas-row-wrap-compact {
gap: 4px;
}
.atlas-row-label {
font-family: "Iosevka", "JetBrains Mono", "SFMono-Regular", monospace;
font-size: 0.76rem;
letter-spacing: 0.16em;
text-transform: uppercase;
color: #b69ec2;
padding-left: 4px;
}
.atlas-row {
display: grid;
grid-template-columns: repeat(6, minmax(0, 1fr));
gap: 8px;
}
.atlas-row-compact {
gap: 4px;
}
.plane {
margin: 0;
background: #000000;
border-radius: 12px;
padding: 4px;
border: 1px solid rgba(255, 255, 255, 0.04);
display: grid;
gap: 4px;
}
.plane figcaption {
font-family: "Iosevka", "JetBrains Mono", "SFMono-Regular", monospace;
font-size: 0.82rem;
letter-spacing: 0.06em;
color: #ffd791;
text-align: center;
}
.plane svg {
width: 100%;
height: auto;
border-radius: 6px;
display: block;
}
.plane-compact {
padding: 2px;
border-radius: 8px;
gap: 0;
}
.plane-compact svg {
border-radius: 4px;
}
.atlas-note {
color: var(--muted);
margin-top: 12px;
line-height: 1.45;
}
.wall-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
gap: 14px;
perspective: 1400px;
perspective-origin: center top;
isolation: isolate;
}
.wall-tile {
display: grid;
gap: 8px;
padding: 10px;
position: relative;
background: linear-gradient(180deg, rgba(16, 12, 24, 0.96), rgba(8, 7, 12, 0.98));
border: 1px solid rgba(255, 255, 255, 0.06);
border-radius: 18px;
box-shadow: 0 10px 22px rgba(0, 0, 0, 0.24);
transform-origin: center center;
transform: translateZ(0) scale(1);
transition:
transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1),
box-shadow 220ms ease,
border-color 220ms ease;
will-change: transform;
z-index: 0;
}
@media (hover: hover) and (pointer: fine) {
.wall-tile:hover {
transform: translate3d(0, -8px, 72px) scale(1.11);
border-color: rgba(255, 255, 255, 0.16);
box-shadow: 0 30px 52px rgba(0, 0, 0, 0.34);
z-index: 3;
}
}
.wall-meta {
display: flex;
justify-content: space-between;
gap: 10px;
color: #dccfa9;
font-family: "Iosevka", "JetBrains Mono", "SFMono-Regular", monospace;
font-size: 0.84rem;
}
.neuron-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
gap: 18px;
}
.neuron-card {
background: linear-gradient(180deg, rgba(30, 20, 40, 0.98), rgba(15, 11, 21, 0.98));
border: 1px solid rgba(255, 255, 255, 0.08);
border-radius: 24px;
padding: 18px;
box-shadow: 0 22px 44px rgba(0, 0, 0, 0.24);
}
.neuron-header {
display: flex;
justify-content: space-between;
gap: 14px;
align-items: flex-start;
margin-bottom: 14px;
}
.subtitle {
color: var(--muted-2);
line-height: 1.45;
}
.score-pill {
flex: 0 0 auto;
text-align: right;
font-family: "Iosevka", "JetBrains Mono", "SFMono-Regular", monospace;
background: rgba(255, 255, 255, 0.05);
border: 1px solid rgba(255, 255, 255, 0.09);
border-radius: 16px;
padding: 10px 12px;
color: #ffd589;
line-height: 1.35;
}
.score-pill span { color: var(--muted); }
.neuron-meta {
margin-top: 13px;
display: flex;
flex-wrap: wrap;
gap: 8px;
}
.neuron-meta span {
padding: 7px 10px;
border-radius: 999px;
background: rgba(255, 255, 255, 0.05);
border: 1px solid rgba(255, 255, 255, 0.07);
color: #f0dfc4;
font-size: 0.88rem;
}
.stats-layout {
display: grid;
grid-template-columns: minmax(320px, 1.15fr) minmax(280px, 0.85fr);
gap: 18px;
align-items: start;
}
table {
width: 100%;
border-collapse: collapse;
margin-top: 10px;
font-size: 0.96rem;
}
th, td {
padding: 10px 8px;
border-bottom: 1px solid rgba(255, 255, 255, 0.08);
text-align: right;
}
th:first-child, td:first-child { text-align: left; }
.bias-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
gap: 10px;
margin-top: 10px;
}
.bias-tile {
display: grid;
grid-template-columns: auto 22px auto;
gap: 10px;
align-items: center;
padding: 12px;
border-radius: 16px;
background: rgba(255, 255, 255, 0.04);
border: 1px solid rgba(255, 255, 255, 0.07);
}
.bias-label { color: var(--muted); }
.bias-chip {
width: 22px;
height: 22px;
border-radius: 999px;
box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
}
.bias-value {
text-align: right;
font-family: "Iosevka", "JetBrains Mono", "SFMono-Regular", monospace;
color: #fff1ca;
}
.heatmap-grid {
display: grid;
grid-template-columns: 1.1fr 0.9fr;
gap: 18px;
align-items: start;
}
.bucket-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
gap: 14px;
}
.heatmap-panel svg {
border-radius: 12px;
background: #040308;
margin-top: 10px;
display: block;
}
details {
margin-top: 16px;
border-top: 1px solid rgba(255, 255, 255, 0.08);
padding-top: 14px;
}
summary {
cursor: pointer;
color: #ffd38d;
font-weight: 600;
margin-bottom: 10px;
}
pre {
margin: 0;
white-space: pre-wrap;
word-break: break-word;
color: #d4c8d9;
font-family: "Iosevka", "JetBrains Mono", "SFMono-Regular", monospace;
line-height: 1.45;
}
@media (max-width: 980px) {
.stats-layout,
.heatmap-grid {
grid-template-columns: 1fr;
}
.atlas-row:not(.atlas-row-compact) {
grid-template-columns: repeat(3, minmax(0, 1fr));
}
.neuron-grid {
grid-template-columns: 1fr;
}
}
@media (max-width: 620px) {
main { padding: 20px 14px 44px; }
.hero, .panel, .neuron-card { padding: 16px; border-radius: 18px; }
.atlas-row:not(.atlas-row-compact) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.wall-grid { grid-template-columns: 1fr; }
.neuron-header { flex-direction: column; }
.score-pill { text-align: left; }
}
</style>
</head>
<body>
<main>
<section class="hero">
<div>
<h1>Eleanor NNUE Atlas</h1>
<p>The report leads with board-shaped NNUE views and keeps the denser neuron wall for quick scanning, so you can read Eleanor's hidden-layer structure directly from the weights.</p>
</div>
<div class="hero-meta">
<span>Source <code>nnue.bin</code></span>
<span>24 int16 header values present</span>
<span>1536 hidden neurons</span>
<span>8 output buckets</span>
<span>Atlas sort <code>range</code></span>
<span>Showing 24 neurons</span>
</div>
<div class="legend-block">
<div class="legend-bar"></div>
<div class="legend-labels"><span>negative</span><span>zero</span><span>positive</span></div>
</div>
<details>
<summary>Network header</summary>
<pre>0 2 0 0 1 1 0 -1 0 -1 0 -1 2 0 0 0 0 -1 1 0 2 0 -1 0</pre>
</details>
</section>
<section class="section">
<div class="section-copy">
<h2>Feature Energy</h2>
<p>Average absolute accumulator weight per input feature across the full hidden layer. These values are non-negative, so darker means lower feature energy and brighter means higher feature energy.</p>
</div>
<section class="panel">
<div class="atlas-frame"><div class="atlas-stack"><div class='atlas-row-wrap'><div class='atlas-row-label'>Plane A</div><div class='atlas-row'><figure class="plane" title="Plane A P"><figcaption>P</figcaption><svg viewBox="0 0 96 96" width="100%" height="100%" xmlns="http://www.w3.org/2000/svg" shape-rendering="crispEdges"><rect x="0" y="0" width="96" height="96" fill="#000000" /><rect x="0" y="0" width="12" height="12" fill="rgb(0,0,4)" /><rect x="12" y="0" width="12" height="12" fill="rgb(0,0,5)" /><rect x="24" y="0" width="12" height="12" fill="rgb(0,0,4)" /><rect x="36" y="0" width="12" height="12" fill="rgb(0,0,5)" /><rect x="48" y="0" width="12" height="12" fill="rgb(0,0,4)" /><rect x="60" y="0" width="12" height="12" fill="rgb(0,0,4)" /><rect x="72" y="0" width="12" height="12" fill="rgb(0,0,4)" /><rect x="84" y="0" width="12" height="12" fill="rgb(1,0,7)" /><rect x="0" y="12" width="12" height="12" fill="rgb(187,57,113)" /><rect x="12" y="12" width="12" height="12" fill="rgb(186,57,114)" /><rect x="24" y="12" width="12" height="12" fill="rgb(187,57,112)" /><rect x="36" y="12" width="12" height="12" fill="rgb(183,55,118)" /><rect x="48" y="12" width="12" height="12" fill="rgb(183,55,118)" /><rect x="60" y="12" width="12" height="12" fill="rgb(168,50,123)" /><rect x="72" y="12" width="12" height="12" fill="rgb(168,50,123)" /><rect x="84" y="12" width="12" height="12" fill="rgb(173,51,122)" /><rect x="0" y="24" width="12" height="12" fill="rgb(130,37,128)" /><rect x="12" y="24" width="12" height="12" fill="rgb(146,42,126)" /><rect x="24" y="24" width="12" height="12" fill="rgb(152,44,125)" /><rect x="36" y="24" width="12" height="12" fill="rgb(136,39,127)" /><rect x="48" y="24" width="12" height="12" fill="rgb(131,37,128)" /><rect x="60" y="24" width="12" height="12" fill="rgb(135,39,128)" /><rect x="72" y="24" width="12" height="12" fill="rgb(129,37,128)" /><rect x="84" y="24" width="12" height="12" fill="rgb(125,35,128)" /><rect x="0" y="36" width="12" height="12" fill="rgb(115,31,127)" /><rect x="12" y="36" width="12" height="12" fill="rgb(141,40,127)" /><rect x="24" y="36" width="12" height="12" fill="rgb(148,43,126)" /><rect x="36" y="36" width="12" height="12" fill="rgb(147,43,126)" /><rect x="48" y="36" width="12" height="12" fill="rgb(141,41,127)" /><rect x="60" y="36" width="12" height="12" fill="rgb(121,34,128)" /><rect x="72" y="36" width="12" height="12" fill="rgb(120,33,127)" /><rect x="84" y="36" width="12" height="12" fill="rgb(111,30,126)" /><rect x="0" y="48" width="12" height="12" fill="rgb(116,32,127)" /><rect x="12" y="48" width="12" height="12" fill="rgb(149,43,126)" /><rect x="24" y="48" width="12" height="12" fill="rgb(161,47,124)" /><rect x="36" y="48" width="12" height="12" fill="rgb(177,52,122)" /><rect x="48" y="48" width="12" height="12" fill="rgb(172,51,123)" /><rect x="60" y="48" width="12" height="12" fill="rgb(138,40,127)" /><rect x="72" y="48" width="12" height="12" fill="rgb(135,39,128)" /><rect x="84" y="48" width="12" height="12" fill="rgb(108,29,126)" /><rect x="0" y="60" width="12" height="12" fill="rgb(130,37,128)" /><rect x="12" y="60" width="12" height="12" fill="rgb(169,50,123)" /><rect x="24" y="60" width="12" height="12" fill="rgb(181,54,121)" /><rect x="36" y="60" width="12" height="12" fill="rgb(183,55,118)" /><rect x="48" y="60" width="12" height="12" fill="rgb(171,50,123)" /><rect x="60" y="60" width="12" height="12" fill="rgb(167,49,123)" /><rect x="72" y="60" width="12" height="12" fill="rgb(147,43,126)" /><rect x="84" y="60" width="12" height="12" fill="rgb(123,34,128)" /><rect x="0" y="72" width="12" height="12" fill="rgb(142,41,127)" /><rect x="12" y="72" width="12" height="12" fill="rgb(182,54,119)" /><rect x="24" y="72" width="12" height="12" fill="rgb(188,58,111)" /><rect x="36" y="72" width="12" height="12" fill="rgb(174,51,122)" /><rect x="48" y="72" width="12" height="12" fill="rgb(169,50,123)" /><rect x="60" y="72" width="12" height="12" fill="rgb(159,46,124)" /><rect x="72" y="72" width="12" height="12" fill="rgb(162,47,124)" /><rect x="84" y="72" width="12" height="12" fill="rgb(132,38,128)" /><rect x="0" y="84" width="12" height="12" fill="rgb(0,0,4)" /><rect x="12" y="84" width="12" height="12" fill="rgb(0,0,4)" /><rect x="24" y="84" width="12" height="12" fill="rgb(0,0,5)" /><rect x="36" y="84" width="12" height="12" fill="rgb(0,0,5)" /><rect x="48" y="84" width="12" height="12" fill="rgb(0,0,4)" /><rect x="60" y="84" width="12" height="12" fill="rgb(0,0,4)" /><rect x="72" y="84" width="12" height="12" fill="rgb(0,0,4)" /><rect x="84" y="84" width="12" height="12" fill="rgb(1,0,7)" /></svg></figure><figure class="plane" title="Plane A N"><figcaption>N</figcaption><svg viewBox="0 0 96 96" width="100%" height="100%" xmlns="http://www.w3.org/2000/svg" shape-rendering="crispEdges"><rect x="0" y="0" width="96" height="96" fill="#000000" /><rect x="0" y="0" width="12" height="12" fill="rgb(180,53,122)" /><rect x="12" y="0" width="12" hLine truncated
<p class="atlas-note">Board order in both rows is <code>P</code>, <code>N</code>, <code>B</code>, <code>R</code>, <code>Q</code>, <code>K</code>. This gives you the same piece-square visual language as the screenshot, but summarized across the whole network.</p>
</section>
</section>
<section class="section">
<div class="section-copy">
<h2>Neuron Wall</h2>
<p>A fast scan across the selected neurons using the same two-row, six-piece layout. Cool colors are negative, warm colors are positive, and black borders keep the piece boards visually separate.</p>
</div>
<section class="panel">
<div class='wall-grid'><article class='wall-tile'><div class="atlas-frame atlas-frame-compact"><div class="atlas-stack atlas-stack-compact"><div class='atlas-row-wrap atlas-row-wrap-compact'><div class='atlas-row atlas-row-compact'><figure class="plane plane-compact" title="Plane A P"><svg viewBox="0 0 32 32" width="100%" height="100%" xmlns="http://www.w3.org/2000/svg" shape-rendering="crispEdges"><rect x="0" y="0" width="32" height="32" fill="#000000" /><rect x="0" y="0" width="4" height="4" fill="rgb(0,0,0)" /><rect x="4" y="0" width="4" height="4" fill="rgb(7,0,10)" /><rect x="8" y="0" width="4" height="4" fill="rgb(0,0,0)" /><rect x="12" y="0" width="4" height="4" fill="rgb(1,0,7)" /><rect x="16" y="0" width="4" height="4" fill="rgb(0,0,0)" /><rect x="20" y="0" width="4" height="4" fill="rgb(0,0,0)" /><rect x="24" y="0" width="4" height="4" fill="rgb(11,0,10)" /><rect x="28" y="0" width="4" height="4" fill="rgb(0,0,0)" /><rect x="0" y="4" width="4" height="4" fill="rgb(186,57,114)" /><rect x="4" y="4" width="4" height="4" fill="rgb(30,3,11)" /><rect x="8" y="4" width="4" height="4" fill="rgb(50,14,92)" /><rect x="12" y="4" width="4" height="4" fill="rgb(64,9,26)" /><rect x="16" y="4" width="4" height="4" fill="rgb(26,3,10)" /><rect x="20" y="4" width="4" height="4" fill="rgb(1,0,7)" /><rect x="24" y="4" width="4" height="4" fill="rgb(1,0,7)" /><rect x="28" y="4" width="4" height="4" fill="rgb(8,3,22)" /><rect x="0" y="8" width="4" height="4" fill="rgb(119,33,127)" /><rect x="4" y="8" width="4" height="4" fill="rgb(0,0,0)" /><rect x="8" y="8" width="4" height="4" fill="rgb(7,0,10)" /><rect x="12" y="8" width="4" height="4" fill="rgb(41,5,16)" /><rect x="16" y="8" width="4" height="4" fill="rgb(7,0,10)" /><rect x="20" y="8" width="4" height="4" fill="rgb(15,1,10)" /><rect x="24" y="8" width="4" height="4" fill="rgb(22,2,10)" /><rect x="28" y="8" width="4" height="4" fill="rgb(13,5,34)" /><rect x="0" y="12" width="4" height="4" fill="rgb(68,10,28)" /><rect x="4" y="12" width="4" height="4" fill="rgb(69,16,113)" /><rect x="8" y="12" width="4" height="4" fill="rgb(4,2,15)" /><rect x="12" y="12" width="4" height="4" fill="rgb(0,0,0)" /><rect x="16" y="12" width="4" height="4" fill="rgb(15,1,10)" /><rect x="20" y="12" width="4" height="4" fill="rgb(0,0,0)" /><rect x="24" y="12" width="4" height="4" fill="rgb(19,1,10)" /><rect x="28" y="12" width="4" height="4" fill="rgb(1,0,7)" /><rect x="0" y="16" width="4" height="4" fill="rgb(105,28,126)" /><rect x="4" y="16" width="4" height="4" fill="rgb(113,31,127)" /><rect x="8" y="16" width="4" height="4" fill="rgb(69,16,113)" /><rect x="12" y="16" width="4" height="4" fill="rgb(13,5,34)" /><rect x="16" y="16" width="4" height="4" fill="rgb(1,0,7)" /><rect x="20" y="16" width="4" height="4" fill="rgb(1,0,7)" /><rect x="24" y="16" width="4" height="4" fill="rgb(8,3,22)" /><rect x="28" y="16" width="4" height="4" fill="rgb(6,2,19)" /><rect x="0" y="20" width="4" height="4" fill="rgb(193,60,105)" /><rect x="4" y="20" width="4" height="4" fill="rgb(111,30,126)" /><rect x="8" y="20" width="4" height="4" fill="rgb(6,2,19)" /><rect x="12" y="20" width="4" height="4" fill="rgb(8,3,22)" /><rect x="16" y="20" width="4" height="4" fill="rgb(3,1,11)" /><rect x="20" y="20" width="4" height="4" fill="rgb(8,3,22)" /><rect x="24" y="20" width="4" height="4" fill="rgb(3,1,11)" /><rect x="28" y="20" width="4" height="4" fill="rgb(8,3,22)" /><rect x="0" y="24" width="4" height="4" fill="rgb(164,214,252)" /><rect x="4" y="24" width="4" height="4" fill="rgb(31,12,71)" /><rect x="8" y="24" width="4" height="4" fill="rgb(14,6,38)" /><rect x="12" y="24" width="4" height="4" fill="rgb(15,1,10)" /><rect x="16" y="24" width="4" height="4" fill="rgb(18,7,45)" /><rect x="20" y="24" width="4" height="4" fill="rgb(11,0,10)" /><rect x="24" y="24" width="4" height="4" fill="rgb(4,2,15)" /><rect x="28" y="24" width="4" height="4" fill="rgb(6,2,19)" /><rect x="0" y="28" width="4" height="4" fill="rgb(1,0,7)" /><rect x="4" y="28" width="4" height="4" fill="rgb(0,0,0)" /><rect x="8" y="28" width="4" height="4" fill="rgb(7,0,10)" /><rect x="12" y="28" width="4" height="4" fill="rgb(0,0,0)" /><rect x="16" y="28" width="4" height="4" fill="rgb(0,0,0)" /><rect x="20" y="28" width="4" height="4" fill="rgb(0,0,0)" /><rect x="24" y="28" width="4" height="4" fill="rgb(0,0,0)" /><rect x="28" y="28" width="4" height="4" fill="rgb(1,0,7)" /></svg></figure><figure class="plane plane-compact" title="Plane A N"><svg viewBox="0 0 32 32" width="100%" height="100%" xmlns="http://www.w3.org/2000/svg" shape-rendering="crispEdges"><rect x="0" y="0" width="32" height="32" fill="#000000" /><rect x="0" y="0" width="4" height="4" fill="rgb(38,5,14)" /><rect x="4" y="0" width="4" height="4" fill="rgb(92,11,50)" /><rect x="8" y="0" width="4" height="4" fill="rgb(89,11,47)" /><rect x="12" y="0" width="4" height="4" fill="rgb(45,5,18)" /><rect x="16" y="0" width="4" height="4" fill="rgb(7,0,10)" /><rect x="20" y="0" width=Line truncated
</section>
</section>
<section class="section">
<div class="section-copy">
<h2>Neuron Atlas</h2>
<p>Top hidden neurons ranked by <code>range</code>. Each card shares a zero-centered signed color scale across its twelve boards, clipped slightly so outliers do not crush the rest of the pattern.</p>
</div>
<div class="neuron-grid">
<article class='neuron-card'><div class='neuron-header'><div><h3>Neuron 1374</h3><p class='subtitle'>bias -103 | output |w|max 14</p></div><div class='score-pill'>range 980<br /><span>mean |w| 26.5</span><br /><span>palette ±141.0</span></div></div><div class="atlas-frame"><div class="atlas-stack"><div class='atlas-row-wrap'><div class='atlas-row-label'>Plane A</div><div class='atlas-row'><figure class="plane" title="Plane A P"><figcaption>P</figcaption><svg viewBox="0 0 96 96" width="100%" height="100%" xmlns="http://www.w3.org/2000/svg" shape-rendering="crispEdges"><rect x="0" y="0" width="96" height="96" fill="#000000" /><rect x="0" y="0" width="12" height="12" fill="rgb(0,0,0)" /><rect x="12" y="0" width="12" height="12" fill="rgb(7,0,10)" /><rect x="24" y="0" width="12" height="12" fill="rgb(0,0,0)" /><rect x="36" y="0" width="12" height="12" fill="rgb(1,0,7)" /><rect x="48" y="0" width="12" height="12" fill="rgb(0,0,0)" /><rect x="60" y="0" width="12" height="12" fill="rgb(0,0,0)" /><rect x="72" y="0" width="12" height="12" fill="rgb(11,0,10)" /><rect x="84" y="0" width="12" height="12" fill="rgb(0,0,0)" /><rect x="0" y="12" width="12" height="12" fill="rgb(186,57,114)" /><rect x="12" y="12" width="12" height="12" fill="rgb(30,3,11)" /><rect x="24" y="12" width="12" height="12" fill="rgb(50,14,92)" /><rect x="36" y="12" width="12" height="12" fill="rgb(64,9,26)" /><rect x="48" y="12" width="12" height="12" fill="rgb(26,3,10)" /><rect x="60" y="12" width="12" height="12" fill="rgb(1,0,7)" /><rect x="72" y="12" width="12" height="12" fill="rgb(1,0,7)" /><rect x="84" y="12" width="12" height="12" fill="rgb(8,3,22)" /><rect x="0" y="24" width="12" height="12" fill="rgb(119,33,127)" /><rect x="12" y="24" width="12" height="12" fill="rgb(0,0,0)" /><rect x="24" y="24" width="12" height="12" fill="rgb(7,0,10)" /><rect x="36" y="24" width="12" height="12" fill="rgb(41,5,16)" /><rect x="48" y="24" width="12" height="12" fill="rgb(7,0,10)" /><rect x="60" y="24" width="12" height="12" fill="rgb(15,1,10)" /><rect x="72" y="24" width="12" height="12" fill="rgb(22,2,10)" /><rect x="84" y="24" width="12" height="12" fill="rgb(13,5,34)" /><rect x="0" y="36" width="12" height="12" fill="rgb(68,10,28)" /><rect x="12" y="36" width="12" height="12" fill="rgb(69,16,113)" /><rect x="24" y="36" width="12" height="12" fill="rgb(4,2,15)" /><rect x="36" y="36" width="12" height="12" fill="rgb(0,0,0)" /><rect x="48" y="36" width="12" height="12" fill="rgb(15,1,10)" /><rect x="60" y="36" width="12" height="12" fill="rgb(0,0,0)" /><rect x="72" y="36" width="12" height="12" fill="rgb(19,1,10)" /><rect x="84" y="36" width="12" height="12" fill="rgb(1,0,7)" /><rect x="0" y="48" width="12" height="12" fill="rgb(105,28,126)" /><rect x="12" y="48" width="12" height="12" fill="rgb(113,31,127)" /><rect x="24" y="48" width="12" height="12" fill="rgb(69,16,113)" /><rect x="36" y="48" width="12" height="12" fill="rgb(13,5,34)" /><rect x="48" y="48" width="12" height="12" fill="rgb(1,0,7)" /><rect x="60" y="48" width="12" height="12" fill="rgb(1,0,7)" /><rect x="72" y="48" width="12" height="12" fill="rgb(8,3,22)" /><rect x="84" y="48" width="12" height="12" fill="rgb(6,2,19)" /><rect x="0" y="60" width="12" height="12" fill="rgb(193,60,105)" /><rect x="12" y="60" width="12" height="12" fill="rgb(111,30,126)" /><rect x="24" y="60" width="12" height="12" fill="rgb(6,2,19)" /><rect x="36" y="60" width="12" height="12" fill="rgb(8,3,22)" /><rect x="48" y="60" width="12" height="12" fill="rgb(3,1,11)" /><rect x="60" y="60" width="12" height="12" fill="rgb(8,3,22)" /><rect x="72" y="60" width="12" height="12" fill="rgb(3,1,11)" /><rect x="84" y="60" width="12" height="12" fill="rgb(8,3,22)" /><rect x="0" y="72" width="12" height="12" fill="rgb(164,214,252)" /><rect x="12" y="72" width="12" height="12" fill="rgb(31,12,71)" /><rect x="24" y="72" width="12" height="12" fill="rgb(14,6,38)" /><rect x="36" y="72" width="12" height="12" fill="rgb(15,1,10)" /><rect x="48" y="72" width="12" height="12" fill="rgb(18,7,45)" /><rect x="60" y="72" width="12" height="12" fill="rgb(11,0,10)" /><rect x="72" y="72" width="12" height="12" fill="rgb(4,2,15)" /><rect x="84" y="72" width="12" height="12" fill="rgb(6,2,19)" /><rect x="0" y="84" width="12" height="12" fill="rgb(1,0,7)" /><rect x="12" y="84" width="12" height="12" fill="rgb(0,0,0)" /><rect x="24" y="84" width="12" height="12" fill="rgb(7,0,10)" /><rect x="36" y="84" width="12" height="12" fill="rgb(0,0,0)" /><rect x="48" y="84" width="12" height="12" fill="rgb(0,0,0)" /><rect x="60" y="84" width="12" height="12" fill="rgb(0,0,0)" /><rect x="72" y="84" width="12" height="12" fill="rgb(0,0,0)" /><rect x="84" y="84" width="12" height="12" fill="rgb(1,0,7)" /></svg></figure><figure class="plane" title="Plane A N"><figcaption>N</figcaption><svg viewBox="0 0 96 96" width="100%" height="100%" xmlns="http://www.w3.org/2000/svg" shape-rendering="crispEdges"><rect x="0" y="0" width="96" height="96" fill=Line truncated
</div>
</section>
<section class="section">
<div class="section-copy">
<h2>Tensor Overview</h2>
<p>The atlas is the main event now, but the report still keeps a higher-level look at the full accumulator matrix and the final bucket weights for when you want the broad shape of the network.</p>
</div>
<div class="stats-layout">
<section class="panel">
<h3>Global Stats</h3>
<table>
<thead><tr><th>Tensor</th><th>Min</th><th>Max</th><th>Mean</th><th>Mean |x|</th></tr></thead>
<tbody>
<tr><td>Accumulator Weights (768x1536 feature-major)</td><td>-504</td><td>504</td><td>-6.339</td><td>26.732</td></tr>
<tr><td>Accumulator Biases (1536)</td><td>-236</td><td>185</td><td>-53.551</td><td>63.382</td></tr>
<tr><td>Output Weights (8x3072)</td><td>-126</td><td>30050</td><td>20.142</td><td>34.774</td></tr>
<tr><td>Output Biases (8)</td><td>27756</td><td>30050</td><td>29094.875</td><td>29094.875</td></tr>
</tbody>
</table>
</section>
<section class='panel'><h3>Output Biases</h3><p class='subtitle'>Lighter tiles are higher bucket biases.</p><div class='bias-grid'><div class='bias-tile'><span class='bias-label'>Bucket 0</span><span class='bias-chip' style='background:rgb(0,0,4)'></span><span class='bias-value'>27756</span></div><div class='bias-tile'><span class='bias-label'>Bucket 1</span><span class='bias-chip' style='background:rgb(250,178,39)'></span><span class='bias-value'>29797</span></div><div class='bias-tile'><span class='bias-label'>Bucket 2</span><span class='bias-chip' style='background:rgb(252,255,164)'></span><span class='bias-value'>30050</span></div><div class='bias-tile'><span class='bias-label'>Bucket 3</span><span class='bias-chip' style='background:rgb(0,0,4)'></span><span class='bias-value'>27756</span></div><div class='bias-tile'><span class='bias-label'>Bucket 4</span><span class='bias-chip' style='background:rgb(250,178,39)'></span><span class='bias-value'>29797</span></div><div class='bias-tile'><span class='bias-label'>Bucket 5</span><span class='bias-chip' style='background:rgb(252,255,164)'></span><span class='bias-value'>30050</span></div><div class='bias-tile'><span class='bias-label'>Bucket 6</span><span class='bias-chip' style='background:rgb(0,0,4)'></span><span class='bias-value'>27756</span></div><div class='bias-tile'><span class='bias-label'>Bucket 7</span><span class='bias-chip' style='background:rgb(250,178,39)'></span><span class='bias-value'>29797</span></div></div></section>
</div>
</section>
<section class="section">
<div class="heatmap-grid">
<section class="panel heatmap-panel"><h3>Accumulator Matrix</h3><p class="subtitle">features x neurons = 768x1536, pooled to 96x128 | data -52.21 .. 38.47 | signed palette ±28.76</p><svg viewBox="0 0 640 480" width="100%" height="auto" xmlns="http://www.w3.org/2000/svg" preserveAspectRatio="none" shape-rendering="crispEdges"><rect x="0" y="0" width="5" height="5" fill="rgb(6,0,10)" /><rect x="5" y="0" width="5" height="5" fill="rgb(4,0,10)" /><rect x="10" y="0" width="5" height="5" fill="rgb(7,0,10)" /><rect x="15" y="0" width="5" height="5" fill="rgb(1,0,6)" /><rect x="20" y="0" width="5" height="5" fill="rgb(4,0,10)" /><rect x="25" y="0" width="5" height="5" fill="rgb(0,0,4)" /><rect x="30" y="0" width="5" height="5" fill="rgb(0,0,0)" /><rect x="35" y="0" width="5" height="5" fill="rgb(5,0,10)" /><rect x="40" y="0" width="5" height="5" fill="rgb(5,0,10)" /><rect x="45" y="0" width="5" height="5" fill="rgb(5,0,10)" /><rect x="50" y="0" width="5" height="5" fill="rgb(5,0,10)" /><rect x="55" y="0" width="5" height="5" fill="rgb(5,0,10)" /><rect x="60" y="0" width="5" height="5" fill="rgb(1,0,6)" /><rect x="65" y="0" width="5" height="5" fill="rgb(7,0,10)" /><rect x="70" y="0" width="5" height="5" fill="rgb(7,0,10)" /><rect x="75" y="0" width="5" height="5" fill="rgb(0,0,6)" /><rect x="80" y="0" width="5" height="5" fill="rgb(4,0,10)" /><rect x="85" y="0" width="5" height="5" fill="rgb(5,0,10)" /><rect x="90" y="0" width="5" height="5" fill="rgb(4,0,10)" /><rect x="95" y="0" width="5" height="5" fill="rgb(7,0,10)" /><rect x="100" y="0" width="5" height="5" fill="rgb(1,0,7)" /><rect x="105" y="0" width="5" height="5" fill="rgb(4,0,10)" /><rect x="110" y="0" width="5" height="5" fill="rgb(1,0,7)" /><rect x="115" y="0" width="5" height="5" fill="rgb(5,0,10)" /><rect x="120" y="0" width="5" height="5" fill="rgb(0,0,4)" /><rect x="125" y="0" width="5" height="5" fill="rgb(0,0,5)" /><rect x="130" y="0" width="5" height="5" fill="rgb(0,0,4)" /><rect x="135" y="0" width="5" height="5" fill="rgb(0,0,5)" /><rect x="140" y="0" width="5" height="5" fill="rgb(1,0,6)" /><rect x="145" y="0" width="5" height="5" fill="rgb(0,0,6)" /><rect x="150" y="0" width="5" height="5" fill="rgb(0,0,5)" /><rect x="155" y="0" width="5" height="5" fill="rgb(6,0,10)" /><rect x="160" y="0" width="5" height="5" fill="rgb(4,0,10)" /><rect x="165" y="0" width="5" height="5" fill="rgb(0,0,4)" /><rect x="170" y="0" width="5" height="5" fill="rgb(5,0,10)" /><rect x="175" y="0" width="5" height="5" fill="rgb(5,0,10)" /><rect x="180" y="0" width="5" height="5" fill="rgb(7,0,10)" /><rect x="185" y="0" width="5" height="5" fill="rgb(5,0,10)" /><rect x="190" y="0" width="5" height="5" fill="rgb(6,0,10)" /><rect x="195" y="0" width="5" height="5" fill="rgb(4,0,10)" /><rect x="200" y="0" width="5" height="5" fill="rgb(0,0,5)" /><rect x="205" y="0" width="5" height="5" fill="rgb(1,0,7)" /><rect x="210" y="0" width="5" height="5" fill="rgb(6,0,10)" /><rect x="215" y="0" width="5" height="5" fill="rgb(1,0,7)" /><rect x="220" y="0" width="5" height="5" fill="rgb(1,0,7)" /><rect x="225" y="0" width="5" height="5" fill="rgb(5,0,10)" /><rect x="230" y="0" width="5" height="5" fill="rgb(7,0,10)" /><rect x="235" y="0" width="5" height="5" fill="rgb(4,0,10)" /><rect x="240" y="0" width="5" height="5" fill="rgb(0,0,4)" /><rect x="245" y="0" width="5" height="5" fill="rgb(0,0,0)" /><rect x="250" y="0" width="5" height="5" fill="rgb(4,0,10)" /><rect x="255" y="0" width="5" height="5" fill="rgb(5,0,10)" /><rect x="260" y="0" width="5" height="5" fill="rgb(1,0,6)" /><rect x="265" y="0" width="5" height="5" fill="rgb(1,0,8)" /><rect x="270" y="0" width="5" height="5" fill="rgb(0,0,4)" /><rect x="275" y="0" width="5" height="5" fill="rgb(4,0,10)" /><rect x="280" y="0" width="5" height="5" fill="rgb(1,0,7)" /><rect x="285" y="0" width="5" height="5" fill="rgb(1,0,6)" /><rect x="290" y="0" width="5" height="5" fill="rgb(0,0,4)" /><rect x="295" y="0" width="5" height="5" fill="rgb(0,0,5)" /><rect x="300" y="0" width="5" height="5" fill="rgb(1,0,6)" /><rect x="305" y="0" width="5" height="5" fill="rgb(6,0,10)" /><rect x="310" y="0" width="5" height="5" fill="rgb(0,0,4)" /><rect x="315" y="0" width="5" height="5" fill="rgb(0,0,4)" /><rect x="320" y="0" width="5" height="5" fill="rgb(0,0,5)" /><rect x="325" y="0" width="5" height="5" fill="rgb(0,0,5)" /><rect x="330" y="0" width="5" height="5" fill="rgb(0,0,5)" /><rect x="335" y="0" width="5" height="5" fill="rgb(4,0,10)" /><rect x="340" y="0" width="5" height="5" fill="rgb(5,0,10)" /><rect x="345" y="0" width="5" height="5" fill="rgb(0,0,5)" /><rect x="350" y="0" width="5" height="5" fill="rgb(0,0,4)" /><rect x="355" y="0" width="5" height="5" fill="rgb(7,0,10)" /><rect x="360" y="0" width="5" height="5" fill="rgb(4,0,10)" /><rect x="365" y="0" width="5" height="5" fill="rgb(0,0,4)" /><rect x="370" y="0" width="5" height="5" fill="rgb(0,0,5)" /><rect x="375" y="0" width="5" height="5" fill="rgb(7,0,10)" /><rect x="38Line truncated
<section class="panel">
<h3>Output Bucket Maps</h3>
<p class="subtitle">Each mini-heatmap shows the two output rows for one bucket: side-to-move accumulator on top, non-side-to-move on bottom.</p>
<div class="bucket-grid">
<section class="panel heatmap-panel"><h3>Output Bucket 0</h3><p class="subtitle">STM and NSTM output weights pooled from 2x1536 to 2x96 | data -16.00 .. 18.06 | signed palette ±14.00</p><svg viewBox="0 0 672 14" width="100%" height="auto" xmlns="http://www.w3.org/2000/svg" preserveAspectRatio="none" shape-rendering="crispEdges"><rect x="0" y="0" width="7" height="7" fill="rgb(42,13,83)" /><rect x="7" y="0" width="7" height="7" fill="rgb(121,34,128)" /><rect x="14" y="0" width="7" height="7" fill="rgb(143,41,127)" /><rect x="21" y="0" width="7" height="7" fill="rgb(191,59,108)" /><rect x="28" y="0" width="7" height="7" fill="rgb(2,0,8)" /><rect x="35" y="0" width="7" height="7" fill="rgb(92,11,50)" /><rect x="42" y="0" width="7" height="7" fill="rgb(54,7,21)" /><rect x="49" y="0" width="7" height="7" fill="rgb(153,45,125)" /><rect x="56" y="0" width="7" height="7" fill="rgb(100,12,57)" /><rect x="63" y="0" width="7" height="7" fill="rgb(252,255,164)" /><rect x="70" y="0" width="7" height="7" fill="rgb(168,49,123)" /><rect x="77" y="0" width="7" height="7" fill="rgb(145,42,126)" /><rect x="84" y="0" width="7" height="7" fill="rgb(252,255,164)" /><rect x="91" y="0" width="7" height="7" fill="rgb(127,32,137)" /><rect x="98" y="0" width="7" height="7" fill="rgb(126,24,109)" /><rect x="105" y="0" width="7" height="7" fill="rgb(126,35,147)" /><rect x="112" y="0" width="7" height="7" fill="rgb(49,14,90)" /><rect x="119" y="0" width="7" height="7" fill="rgb(244,126,19)" /><rect x="126" y="0" width="7" height="7" fill="rgb(57,15,100)" /><rect x="133" y="0" width="7" height="7" fill="rgb(89,55,204)" /><rect x="140" y="0" width="7" height="7" fill="rgb(88,180,252)" /><rect x="147" y="0" width="7" height="7" fill="rgb(163,48,124)" /><rect x="154" y="0" width="7" height="7" fill="rgb(127,36,128)" /><rect x="161" y="0" width="7" height="7" fill="rgb(125,38,158)" /><rect x="168" y="0" width="7" height="7" fill="rgb(34,90,238)" /><rect x="175" y="0" width="7" height="7" fill="rgb(248,151,21)" /><rect x="182" y="0" width="7" height="7" fill="rgb(94,23,124)" /><rect x="189" y="0" width="7" height="7" fill="rgb(29,12,70)" /><rect x="196" y="0" width="7" height="7" fill="rgb(170,50,123)" /><rect x="203" y="0" width="7" height="7" fill="rgb(125,20,96)" /><rect x="210" y="0" width="7" height="7" fill="rgb(79,10,38)" /><rect x="217" y="0" width="7" height="7" fill="rgb(84,57,208)" /><rect x="224" y="0" width="7" height="7" fill="rgb(79,18,123)" /><rect x="231" y="0" width="7" height="7" fill="rgb(67,63,220)" /><rect x="238" y="0" width="7" height="7" fill="rgb(164,214,252)" /><rect x="245" y="0" width="7" height="7" fill="rgb(50,162,251)" /><rect x="252" y="0" width="7" height="7" fill="rgb(106,28,126)" /><rect x="259" y="0" width="7" height="7" fill="rgb(250,177,39)" /><rect x="266" y="0" width="7" height="7" fill="rgb(50,14,92)" /><rect x="273" y="0" width="7" height="7" fill="rgb(111,48,188)" /><rect x="280" y="0" width="7" height="7" fill="rgb(128,36,128)" /><rect x="287" y="0" width="7" height="7" fill="rgb(50,14,92)" /><rect x="294" y="0" width="7" height="7" fill="rgb(236,101,39)" /><rect x="301" y="0" width="7" height="7" fill="rgb(183,55,119)" /><rect x="308" y="0" width="7" height="7" fill="rgb(29,12,70)" /><rect x="315" y="0" width="7" height="7" fill="rgb(150,43,126)" /><rect x="322" y="0" width="7" height="7" fill="rgb(201,65,93)" /><rect x="329" y="0" width="7" height="7" fill="rgb(31,94,239)" /><rect x="336" y="0" width="7" height="7" fill="rgb(100,52,196)" /><rect x="343" y="0" width="7" height="7" fill="rgb(216,73,73)" /><rect x="350" y="0" width="7" height="7" fill="rgb(56,7,22)" /><rect x="357" y="0" width="7" height="7" fill="rgb(12,5,32)" /><rect x="364" y="0" width="7" height="7" fill="rgb(87,11,45)" /><rect x="371" y="0" width="7" height="7" fill="rgb(18,8,46)" /><rect x="378" y="0" width="7" height="7" fill="rgb(127,34,142)" /><rect x="385" y="0" width="7" height="7" fill="rgb(237,104,36)" /><rect x="392" y="0" width="7" height="7" fill="rgb(101,186,252)" /><rect x="399" y="0" width="7" height="7" fill="rgb(145,42,126)" /><rect x="406" y="0" width="7" height="7" fill="rgb(39,148,250)" /><rect x="413" y="0" width="7" height="7" fill="rgb(15,1,10)" /><rect x="420" y="0" width="7" height="7" fill="rgb(58,8,23)" /><rect x="427" y="0" width="7" height="7" fill="rgb(123,15,80)" /><rect x="434" y="0" width="7" height="7" fill="rgb(123,15,80)" /><rect x="441" y="0" width="7" height="7" fill="rgb(191,59,108)" /><rect x="448" y="0" width="7" height="7" fill="rgb(56,15,98)" /><rect x="455" y="0" width="7" height="7" fill="rgb(209,69,82)" /><rect x="462" y="0" width="7" height="7" fill="rgb(125,37,155)" /><rect x="469" y="0" width="7" height="7" fill="rgb(63,169,252)" /><rect x="476" y="0" width="7" height="7" fill="rgb(252,255,164)" /><rect x="483" y="0" width="7" height="7" fill="rgb(76,59,213)" /><rect x="490" y="0" width="7" height="7" fill="rgb(242,121,24)" /><rect x="497" y="0" width="7" height="7" Line truncated
</div>
</section>
</div>
</section>
</main>
</body>
</html>
+2 -1
View File
@@ -617,7 +617,7 @@ SearchResults PVS(Board& board, int depth, int alpha, int beta, int ply, SearchC
int extension = 0;
if (ply
if (ply && ply < ctx->rootDepth * 2
&& depth >= 8
&& ttHit
&& currMove == entry.bestMove
@@ -882,6 +882,7 @@ static SearchResults ID(Board &board, SearchParams params, SearchContext* ctx) {
ctx->timeToSearch = std::max((fullTime / movesToGo) + (inc / 2), 4);
int softTime = ctx->timeToSearch * 0.65 * nodeScaling;
ctx->seldepth = 0;
ctx->rootDepth = depth;
SearchResults currentResults = PVS<true, mode>(board, depth, aw.alpha, aw.beta, 0, ctx, false);
+1
View File
@@ -221,6 +221,7 @@ public:
std::array<U64, 4096> nodesTable{};
int seldepth = 0;
int rootDepth = 0;
Move excluded = Move();