|
1 | 1 | # This file is part of sbi, a toolkit for simulation-based inference. sbi is licensed
|
2 | 2 | # under the Apache License Version 2.0, see <https://www.apache.org/licenses/>
|
3 | 3 |
|
| 4 | +# NOTE: the entire file was drafted by GPT-5 in GH Copilot, then editied by janfb. |
| 5 | + |
4 | 6 | from typing import Tuple
|
5 | 7 |
|
6 | 8 | import pytest
|
@@ -154,7 +156,7 @@ def test_build_input_output_layer_shapes_and_types(
|
154 | 156 |
|
155 | 157 |
|
156 | 158 | # ------------------------
|
157 |
| -# ActiveSubspace.add_property tests |
| 159 | +# ActiveSubspace tests |
158 | 160 | # ------------------------
|
159 | 161 |
|
160 | 162 |
|
@@ -222,11 +224,6 @@ def test_train_reuses_existing_net(toy_theta_property, posterior_stub) -> None:
|
222 | 224 | assert id(a._regression_net) == first_id # net is reused, not rebuilt
|
223 | 225 |
|
224 | 226 |
|
225 |
| -# ------------------------ |
226 |
| -# ActiveSubspace.find_directions tests |
227 |
| -# ------------------------ |
228 |
| - |
229 |
| - |
230 | 227 | @pytest.mark.parametrize("norm_gradients", [True, False])
|
231 | 228 | def test_find_directions_with_regression_net(
|
232 | 229 | norm_gradients, toy_theta_property, posterior_stub
|
@@ -276,11 +273,6 @@ def test_find_directions_raises_without_property(posterior_stub) -> None:
|
276 | 273 | )
|
277 | 274 |
|
278 | 275 |
|
279 |
| -# ------------------------ |
280 |
| -# ActiveSubspace.project tests |
281 |
| -# ------------------------ |
282 |
| - |
283 |
| - |
284 | 276 | @pytest.mark.parametrize("norm_gradients", [True, False])
|
285 | 277 | def test_project_after_find_directions(
|
286 | 278 | norm_gradients, toy_theta_property, posterior_stub
|
|
0 commit comments