Skip to content

Commit

Permalink
added one test
Browse files Browse the repository at this point in the history
  • Loading branch information
annahedstroem committed Dec 4, 2023
1 parent 8ee589f commit 65c0130
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions tests/metrics/test_randomisation_metrics.py
Original file line number Diff line number Diff line change
Expand Up @@ -773,6 +773,30 @@ def test_model_parameter_randomisation(
},
{"min": -1.0, "max": 1.0},
),
(
lazy_fixture("load_mnist_model"),
lazy_fixture("load_mnist_images"),
{
"init": {
"layer_order": "independent",
"similarity_func": correlation_spearman,
"normalise": True,
"abs": True,
"disable_warnings": True,
"return_average_correlation": False,
"return_last_correlation": True,
"skip_layers": True,
},
"call": {
"explain_func": explain,
"explain_func_kwargs": {
"attributor": zattr.IntegratedGradients,
"xai_lib": "zennit",
},
},
},
{"min": -1.0, "max": 1.0},
),
],
)
def test_smooth_model_parameter_randomisation(
Expand Down

0 comments on commit 65c0130

Please sign in to comment.