Skip to content

Commit b2f3434

Browse files
committed
feedback
1 parent 33bb7b1 commit b2f3434

File tree

1 file changed

+3
-11
lines changed

1 file changed

+3
-11
lines changed

tests/sensitivity_analysis_test.py

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
# This file is part of sbi, a toolkit for simulation-based inference. sbi is licensed
22
# under the Apache License Version 2.0, see <https://www.apache.org/licenses/>
33

4+
# NOTE: the entire file was drafted by GPT-5 in GH Copilot, then editied by janfb.
5+
46
from typing import Tuple
57

68
import pytest
@@ -154,7 +156,7 @@ def test_build_input_output_layer_shapes_and_types(
154156

155157

156158
# ------------------------
157-
# ActiveSubspace.add_property tests
159+
# ActiveSubspace tests
158160
# ------------------------
159161

160162

@@ -222,11 +224,6 @@ def test_train_reuses_existing_net(toy_theta_property, posterior_stub) -> None:
222224
assert id(a._regression_net) == first_id # net is reused, not rebuilt
223225

224226

225-
# ------------------------
226-
# ActiveSubspace.find_directions tests
227-
# ------------------------
228-
229-
230227
@pytest.mark.parametrize("norm_gradients", [True, False])
231228
def test_find_directions_with_regression_net(
232229
norm_gradients, toy_theta_property, posterior_stub
@@ -276,11 +273,6 @@ def test_find_directions_raises_without_property(posterior_stub) -> None:
276273
)
277274

278275

279-
# ------------------------
280-
# ActiveSubspace.project tests
281-
# ------------------------
282-
283-
284276
@pytest.mark.parametrize("norm_gradients", [True, False])
285277
def test_project_after_find_directions(
286278
norm_gradients, toy_theta_property, posterior_stub

0 commit comments

Comments
 (0)