Skip to content

Commit

Permalink
increased iters to 2, for more thorough testing
Browse files Browse the repository at this point in the history
  • Loading branch information
liz-is committed Dec 10, 2024
1 parent aec7510 commit 671df00
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 12 deletions.
10 changes: 5 additions & 5 deletions tests/__snapshots__/_explanation_onnx_test.ambr
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
heatmap_colours='magma',
info=True,
insertion_step=100,
iters=1,
iters=2,
mark_segments=False,
mask_value=0,
means=None,
Expand Down Expand Up @@ -106,13 +106,13 @@
[False, False, False, ..., False, False, False],
[False, False, False, ..., False, False, False],
[False, False, False, ..., False, False, False]]]),
maps={209: 3},
maps={209: 4},
mask_func=0,
run_stats=dict({
'avg_box_size': 1731.3333333333333,
'avg_box_size': 2747.4166666666665,
'max_depth_reached': 4,
'total_failing': 88,
'total_passing': 24,
'total_failing': 169,
'total_passing': 41,
}),
target=CLASS: 209, CONF: 0.391777366399765, TARGET_CLASS: None, TARGET_CONFIDENCE: None,
)
Expand Down
10 changes: 5 additions & 5 deletions tests/__snapshots__/_explanation_test.ambr
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
heatmap_colours='magma',
info=True,
insertion_step=100,
iters=1,
iters=2,
mark_segments=False,
mask_value=0,
means=None,
Expand Down Expand Up @@ -105,13 +105,13 @@
[False, False, False, ..., False, False, False],
[False, False, False, ..., False, False, False],
[False, False, False, ..., False, False, False]]]),
maps={207: 3},
maps={207: 4},
mask_func=0,
run_stats=dict({
'avg_box_size': 216.0,
'avg_box_size': 183.5625,
'max_depth_reached': 5,
'total_failing': 71,
'total_passing': 41,
'total_failing': 126,
'total_passing': 84,
}),
target=CLASS: 207, CONF: 0.2046184241771698, TARGET_CLASS: None, TARGET_CONFIDENCE: None,
)
Expand Down
2 changes: 1 addition & 1 deletion tests/_explanation_onnx_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
def args_onnx(resnet50):
args = CausalArgs()
args.path = "imgs/dog.jpg"
args.iters = 1
args.iters = 2
args.search_limit = 1000
args.seed = 100
args.model = resnet50
Expand Down
2 changes: 1 addition & 1 deletion tests/_explanation_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
def args_custom_script():
args = CausalArgs()
args.path = "imgs/dog.jpg"
args.iters = 1
args.iters = 2
args.search_limit = 1000
args.seed = 42
process_custom_script("tests/scripts/pytorch.py", args)
Expand Down

0 comments on commit 671df00

Please sign in to comment.