Add P6 benchmark code, locked protocol_bench, T2 study
- ml_porosity/benchmark/ runner, scripts 32-35, scripts/run_bench.sh;
misspec= option in synth_d2 (default path reproduces P2r bit for bit).
- configs/protocol_bench.{yaml,sha256,lock.json} locked 29/10 14:39 UTC
(sha256 aa763f0a...), configs/d2_synth_bench.yaml.
- T2 mechanism declaration and results; operations/p6_supervisor.py.
- Docs, report and paper edits of 29/10.
outputs/ stays out of git; the repository folder is synced as a whole to
the new server. Main S1 runs are still training at this commit.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -52,6 +52,12 @@ def bank_loss(mu, sigma, Y, logpi, starts, win: int, lam: float | None):
|
||||
return -(v / (lam * win)).mean()
|
||||
|
||||
|
||||
def responsibilities(mu, sigma, Y, logpi, starts, win: int, lam: float):
|
||||
"""r (B, J, S) = softmax_s(log π_s + λ ℓ_wjs): the weights of Lemma 3 (∇ RML = −(1/n) Σ_s r_s ∇ℓ_s)."""
|
||||
ll = window_loglik(mu, sigma, Y, starts, win)
|
||||
return torch.softmax(logpi[:, None, :] + lam * ll, dim=-1)
|
||||
|
||||
|
||||
def mse_bank_loss(mu, Y, starts, win: int):
|
||||
"""Mean MSE over the labels of the bank (H1: the optimum is the label blurred by p_δ)."""
|
||||
m = gather_windows(mu, starts, win)[:, :, None, :]
|
||||
|
||||
Reference in New Issue
Block a user