|
86 | 86 | " test_stat=\"qtilde\",\n", |
87 | 87 | " return_expected_set=True,\n", |
88 | 88 | " calctype=\"toybased\",\n", |
89 | | - " ntoys=1000,\n", |
| 89 | + " ntoys=1_000,\n", |
90 | 90 | " track_progress=False,\n", |
91 | 91 | ")\n", |
92 | 92 | "print(f\" Observed CLs: {CLs_obs:.4f}\")\n", |
|
136 | 136 | "source": [ |
137 | 137 | "CLs_obs, CLs_exp = pyhf.infer.hypotest(\n", |
138 | 138 | " 1.0, # null hypothesis\n", |
139 | | - " [5.0, 7.0] + model.config.auxdata,\n", |
140 | | - " model,\n", |
| 139 | + " [5.0, 7.0] + model_low.config.auxdata,\n", |
| 140 | + " model_low,\n", |
141 | 141 | " test_stat=\"qtilde\",\n", |
142 | 142 | " return_expected_set=True,\n", |
143 | 143 | " calctype=\"asymptotics\",\n", |
|
151 | 151 | "cell_type": "markdown", |
152 | 152 | "metadata": {}, |
153 | 153 | "source": [ |
154 | | - "And now throwing 2000 toys:" |
| 154 | + "And now throwing 5000 toys:" |
155 | 155 | ] |
156 | 156 | }, |
157 | 157 | { |
|
162 | 162 | "source": [ |
163 | 163 | "CLs_obs, CLs_exp = pyhf.infer.hypotest(\n", |
164 | 164 | " 1.0, # null hypothesis\n", |
165 | | - " [5.0, 7.0] + model.config.auxdata,\n", |
166 | | - " model,\n", |
| 165 | + " [5.0, 7.0] + model_low.config.auxdata,\n", |
| 166 | + " model_low,\n", |
167 | 167 | " test_stat=\"qtilde\",\n", |
168 | 168 | " return_expected_set=True,\n", |
169 | 169 | " calctype=\"toybased\",\n", |
170 | | - " ntoys=1000,\n", |
| 170 | + " ntoys=5_000,\n", |
171 | 171 | " track_progress=False,\n", |
172 | 172 | ")\n", |
173 | 173 | "print(f\" Observed CLs: {CLs_obs:.4f}\")\n", |
|
185 | 185 | ], |
186 | 186 | "metadata": { |
187 | 187 | "kernelspec": { |
188 | | - "display_name": "Python 3", |
| 188 | + "display_name": "Python 3 (ipykernel)", |
189 | 189 | "language": "python", |
190 | 190 | "name": "python3" |
191 | 191 | }, |
|
199 | 199 | "name": "python", |
200 | 200 | "nbconvert_exporter": "python", |
201 | 201 | "pygments_lexer": "ipython3", |
202 | | - "version": "3.8.7" |
| 202 | + "version": "3.10.4" |
203 | 203 | } |
204 | 204 | }, |
205 | 205 | "nbformat": 4, |
|
0 commit comments