MCPcopy Create free account
hub / github.com/CodeClash-ai/CodeClash / nll

Function nll

codeclash/analysis/bootstrap/analyze_round_correlations.py:89–94  ·  view source on GitHub ↗
(theta: np.ndarray)

Source from the content-addressed store, hash-verified

87 N = valid_mask.sum()
88
89 def nll(theta: np.ndarray) -> float:
90 game, mu = unpack(theta)
91 res = ar_residuals_logit(scores, game, mu)
92 e = res[valid_mask]
93 sigma2 = (e @ e) / N
94 return 0.5 * N * np.log(sigma2)
95
96 theta0 = pack(game0, mu0)
97 lower_game = np.full(p, -0.999)

Callers

nothing calls this directly

Calls 2

unpackFunction · 0.85
ar_residuals_logitFunction · 0.85

Tested by

no test coverage detected