(theta: np.ndarray)
| 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) |
nothing calls this directly
no test coverage detected