summaryrefslogtreecommitdiff
path: root/scripts/README.md
diff options
context:
space:
mode:
authorYurenHao0426 <Blackhao0426@gmail.com>2026-05-28 22:51:23 -0500
committerYurenHao0426 <Blackhao0426@gmail.com>2026-05-28 22:51:23 -0500
commit590baa92c66caeb939bae3fad0ed7cc9b2c87f75 (patch)
tree89edaca94b165879e1f322e244589593be99dc3c /scripts/README.md
parent7c2eaaa5ae6f9bc5b61de1f7f86b1cc0896b5596 (diff)
Add capacity scaling calculations
Diffstat (limited to 'scripts/README.md')
-rw-r--r--scripts/README.md28
1 files changed, 28 insertions, 0 deletions
diff --git a/scripts/README.md b/scripts/README.md
index 1fe2ad9..3124261 100644
--- a/scripts/README.md
+++ b/scripts/README.md
@@ -25,3 +25,31 @@ D=\texttt{rows}\times\texttt{cols}.
Outputs are written under `outputs/static_alignment_beta/`, which is ignored by Git.
+## Capacity Scaling
+
+Run:
+
+```bash
+python scripts/capacity_scaling.py --plot
+```
+
+This computes:
+
+\[
+C_l(q)
+=
+-\log\Pr(Q_l\ge q)
+\]
+
+for equal-width feedback blocks with \(D=n^2\), then sums over the number of feedback-aligned layers:
+
+\[
+C_{\mathrm{all}}=\sum_l C_l(q_l).
+\]
+
+The default run compares two regimes:
+
+- `fixed`: \(q=0.01\), where \(C_{\mathrm{all}}\) grows like \(\Theta(Ln^2)\).
+- `chance`: \(q=1/D\), where \(C_{\mathrm{all}}\) grows mostly with \(L\).
+
+Outputs are written under `outputs/capacity_scaling/`.