From 740be809224fe27571f5841d2bd9b52b7217c8ea Mon Sep 17 00:00:00 2001 From: rektdie Date: Sun, 29 Mar 2026 00:09:17 +0100 Subject: [PATCH] rootdepth condition in se bench: 1252943 --- nnue_visualizer.html | 473 +++++++++++++++++++++++++++++++++++++++++++ source/search.cpp | 3 +- source/search.h | 1 + 3 files changed, 476 insertions(+), 1 deletion(-) create mode 100644 nnue_visualizer.html diff --git a/nnue_visualizer.html b/nnue_visualizer.html new file mode 100644 index 0000000..74fea1a --- /dev/null +++ b/nnue_visualizer.html @@ -0,0 +1,473 @@ + + + + + + Eleanor NNUE Visualizer + + + +
+
+
+

Eleanor NNUE Atlas

+

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.

+
+
+ Source nnue.bin + 24 int16 header values present + 1536 hidden neurons + 8 output buckets + Atlas sort range + Showing 24 neurons +
+
+
+
negativezeropositive
+
+
+ Network header +
0 2 0 0 1 1 0 -1 0 -1 0 -1 2 0 0 0 0 -1 1 0 2 0 -1 0
+
+
+
+
+

Feature Energy

+

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.

+
+
+
Plane A
P
N
B
R
Q
K
Plane B
P
N
B
R
Q
K
+

Board order in both rows is P, N, B, R, Q, K. This gives you the same piece-square visual language as the screenshot, but summarized across the whole network.

+
+
+ +
+
+

Neuron Wall

+

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.

+
+
+
#1374±141
#1449±150
#1359±141
#1136±82
#273±99
#1020±140
#200±104
#1138±134
#181±188
#1238±443
#715±175
#977±82
#838±82
#5±340
#353±69
#776±281
#730±101
#1411±189
#309±113
#163±85
#140±110
#823±244
#1534±86
#878±96
+
+
+ +
+
+

Neuron Atlas

+

Top hidden neurons ranked by range. 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.

+
+
+

Neuron 1374

bias -103 | output |w|max 14

range 980
mean |w| 26.5
palette ±141.0
Plane A
P
N
B
R
Q
K
Plane B
P
N
B
R
Q
K
min -476max 504mean -12.29stddev 47.76

Neuron 1449

bias -82 | output |w|max 23

range 965
mean |w| 26.4
palette ±150.0
Plane A
P
N
B
R
Q
K
Plane B
P
N
B
R
Q
K
min -504max 461mean 2.73stddev 50.86

Neuron 1359

bias -81 | output |w|max 17

range 955
mean |w| 21.8
palette ±141.0
Plane A
P
N
B
R
Q
K
Plane B
P
N
B
R
Q
K
min -504max 451mean 2.98stddev 46.64

Neuron 1136

bias -45 | output |w|max 10

range 932
mean |w| 22.3
palette ±82.0
Plane A
P
N
B
R
Q
K
Plane B
P
N
B
R
Q
K
min -487max 445mean 3.99stddev 41.09

Neuron 273

bias -119 | output |w|max 13

range 931
mean |w| 24.6
palette ±99.0
Plane A
P
N
B
R
Q
K
Plane B
P
N
B
R
Q
K
min -503max 428mean 3.76stddev 45.44

Neuron 1020

bias -55 | output |w|max 12

range 869
mean |w| 26.3
palette ±140.0
Plane A
P
N
B
R
Q
K
Plane B
P
N
B
R
Q
K
min -446max 423mean -5.70stddev 52.22

Neuron 200

bias -95 | output |w|max 15

range 859
mean |w| 26.0
palette ±104.0
Plane A
P
N
B
R
Q
K
Plane B
P
N
B
R
Q
K
min -415max 444mean -4.40stddev 47.62

Neuron 1138

bias -66 | output |w|max 19

range 846
mean |w| 19.1
palette ±134.0
Plane A
P
N
B
R
Q
K
Plane B
P
N
B
R
Q
K
min -388max 458mean -2.02stddev 41.60

Neuron 181

bias -23 | output |w|max 11

range 833
mean |w| 25.6
palette ±188.0
Plane A
P
N
B
R
Q
K
Plane B
P
N
B
R
Q
K
min -458max 375mean -6.47stddev 58.68

Neuron 1238

bias -97 | output |w|max 126

range 827
mean |w| 133.9
palette ±443.0
Plane A
P
N
B
R
Q
K
Plane B
P
N
B
R
Q
K
min -502max 325mean -14.57stddev 176.28

Neuron 715

bias -32 | output |w|max 10

range 803
mean |w| 23.9
palette ±175.0
Plane A
P
N
B
R
Q
K
Plane B
P
N
B
R
Q
K
min -439max 364mean -4.80stddev 57.60

Neuron 977

bias -33 | output |w|max 10

range 802
mean |w| 19.5
palette ±82.0
Plane A
P
N
B
R
Q
K
Plane B
P
N
B
R
Q
K
min -504max 298mean 1.64stddev 34.02

Neuron 838

bias -137 | output |w|max 57

range 798
mean |w| 18.9
palette ±82.0
Plane A
P
N
B
R
Q
K
Plane B
P
N
B
R
Q
K
min -501max 297mean -1.52stddev 36.44

Neuron 5

bias -84 | output |w|max 126

range 785
mean |w| 62.0
palette ±340.0
Plane A
P
N
B
R
Q
K
Plane B
P
N
B
R
Q
K
min -483max 302mean -50.13stddev 83.98

Neuron 353

bias -2 | output |w|max 11

range 771
mean |w| 17.4
palette ±69.0
Plane A
P
N
B
R
Q
K
Plane B
P
N
B
R
Q
K
min -496max 275mean -4.83stddev 38.99

Neuron 776

bias -97 | output |w|max 126

range 765
mean |w| 62.0
palette ±281.0
Plane A
P
N
B
R
Q
K
Plane B
P
N
B
R
Q
K
min -463max 302mean -47.76stddev 80.99

Neuron 730

bias -99 | output |w|max 36

range 754
mean |w| 23.5
palette ±101.0
Plane A
P
N
B
R
Q
K
Plane B
P
N
B
R
Q
K
min -504max 250mean -8.95stddev 46.10

Neuron 1411

bias -63 | output |w|max 12

range 735
mean |w| 23.4
palette ±189.0
Plane A
P
N
B
R
Q
K
Plane B
P
N
B
R
Q
K
min -410max 325mean -3.35stddev 51.10

Neuron 309

bias -72 | output |w|max 14

range 727
mean |w| 21.9
palette ±113.0
Plane A
P
N
B
R
Q
K
Plane B
P
N
B
R
Q
K
min -397max 330mean 7.40stddev 41.00

Neuron 163

bias 9 | output |w|max 15

range 715
mean |w| 22.2
palette ±85.0
Plane A
P
N
B
R
Q
K
Plane B
P
N
B
R
Q
K
min -414max 301mean 1.51stddev 39.09

Neuron 140

bias -52 | output |w|max 29

range 707
mean |w| 29.9
palette ±110.0
Plane A
P
N
B
R
Q
K
Plane B
P
N
B
R
Q
K
min -472max 235mean -18.26stddev 50.09

Neuron 823

bias -114 | output |w|max 42

range 701
mean |w| 31.2
palette ±244.0
Plane A
P
N
B
R
Q
K
Plane B
P
N
B
R
Q
K
min -482max 219mean -5.17stddev 68.63

Neuron 1534

bias -4 | output |w|max 29797

range 701
mean |w| 17.2
palette ±86.0
Plane A
P
N
B
R
Q
K
Plane B
P
N
B
R
Q
K
min -313max 388mean 0.55stddev 34.27

Neuron 878

bias -67 | output |w|max 29

range 694
mean |w| 20.2
palette ±96.0
Plane A
P
N
B
R
Q
K
Plane B
P
N
B
R
Q
K
min -447max 247mean -9.01stddev 41.65
+
+
+ +
+
+

Tensor Overview

+

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.

+
+
+
+

Global Stats

+ + + + + + + + +
TensorMinMaxMeanMean |x|
Accumulator Weights (768x1536 feature-major)-504504-6.33926.732
Accumulator Biases (1536)-236185-53.55163.382
Output Weights (8x3072)-1263005020.14234.774
Output Biases (8)277563005029094.87529094.875
+
+

Output Biases

Lighter tiles are higher bucket biases.

Bucket 027756
Bucket 129797
Bucket 230050
Bucket 327756
Bucket 429797
Bucket 530050
Bucket 627756
Bucket 729797
+
+
+ +
+
+

Accumulator Matrix

features x neurons = 768x1536, pooled to 96x128 | data -52.21 .. 38.47 | signed palette ±28.76

+
+

Output Bucket Maps

+

Each mini-heatmap shows the two output rows for one bucket: side-to-move accumulator on top, non-side-to-move on bottom.

+
+

Output Bucket 0

STM and NSTM output weights pooled from 2x1536 to 2x96 | data -16.00 .. 18.06 | signed palette ±14.00

Output Bucket 1

STM and NSTM output weights pooled from 2x1536 to 2x96 | data -20.31 .. 24.12 | signed palette ±14.00

Output Bucket 2

STM and NSTM output weights pooled from 2x1536 to 2x96 | data -16.38 .. 19.31 | signed palette ±12.38

Output Bucket 3

STM and NSTM output weights pooled from 2x1536 to 2x96 | data -16.56 .. 15.44 | signed palette ±10.88

Output Bucket 4

STM and NSTM output weights pooled from 2x1536 to 2x96 | data -14.81 .. 13.56 | signed palette ±10.06

Output Bucket 5

STM and NSTM output weights pooled from 2x1536 to 2x96 | data -12.62 .. 12.00 | signed palette ±8.56

Output Bucket 6

STM and NSTM output weights pooled from 2x1536 to 2x96 | data -10.56 .. 10.38 | signed palette ±7.00

Output Bucket 7

STM and NSTM output weights pooled from 2x1536 to 2x96 | data -8.19 .. 29254.06 | signed palette ±6.44

+
+
+
+
+
+ + diff --git a/source/search.cpp b/source/search.cpp index a23d676..3c735c0 100644 --- a/source/search.cpp +++ b/source/search.cpp @@ -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(board, depth, aw.alpha, aw.beta, 0, ctx, false); diff --git a/source/search.h b/source/search.h index 94be06e..10af2e2 100644 --- a/source/search.h +++ b/source/search.h @@ -221,6 +221,7 @@ public: std::array nodesTable{}; int seldepth = 0; + int rootDepth = 0; Move excluded = Move();