Skip to content

Commit

Permalink
removed unused param
Browse files Browse the repository at this point in the history
  • Loading branch information
davor10105 committed Nov 28, 2024
1 parent 4a5d29e commit 4d2d59e
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 12 deletions.
4 changes: 0 additions & 4 deletions quantus/metrics/axiomatic/non_sensitivity.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,6 @@ class NonSensitivity(Metric[List[float]]):
def __init__(
self,
eps: float = 1e-5,
n_samples: int = 100,
features_in_step: int = 1,
abs: bool = True,
normalise: bool = True,
Expand All @@ -84,8 +83,6 @@ def __init__(
----------
eps: float
Attributions threshold, default=1e-5.
n_samples: integer
The number of samples to iterate over, default=100.
features_in_step: integer
The step size, default=1.
abs: boolean
Expand Down Expand Up @@ -137,7 +134,6 @@ def __init__(

# Save metric-specific attributes.
self.eps = eps
self.n_samples = n_samples
self.features_in_step = features_in_step
self.perturb_func = make_perturb_func(perturb_func, perturb_func_kwargs, perturb_baseline=perturb_baseline)

Expand Down
8 changes: 0 additions & 8 deletions tests/metrics/test_axiomatic_metrics.py
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,6 @@ def test_completeness(
{
"a_batch_generate": False,
"init": {
"n_samples": 1,
"normalise": True,
"disable_warnings": False,
"display_progressbar": False,
Expand All @@ -248,7 +247,6 @@ def test_completeness(
{
"a_batch_generate": False,
"init": {
"n_samples": 1,
"normalise": True,
"disable_warnings": False,
"display_progressbar": False,
Expand All @@ -268,7 +266,6 @@ def test_completeness(
{
"a_batch_generate": False,
"init": {
"n_samples": 1,
"eps": 1e-2,
"normalise": True,
"disable_warnings": True,
Expand All @@ -289,7 +286,6 @@ def test_completeness(
{
"a_batch_generate": True,
"init": {
"n_samples": 1,
"eps": 1e-2,
"normalise": True,
"disable_warnings": True,
Expand All @@ -310,7 +306,6 @@ def test_completeness(
{
"a_batch_generate": False,
"init": {
"n_samples": 2,
"normalise": False,
"disable_warnings": True,
"display_progressbar": False,
Expand All @@ -330,7 +325,6 @@ def test_completeness(
{
"a_batch_generate": True,
"init": {
"n_samples": 2,
"normalise": False,
"disable_warnings": True,
"display_progressbar": False,
Expand All @@ -350,7 +344,6 @@ def test_completeness(
{
"a_batch_generate": False,
"init": {
"n_samples": 1,
"eps": 1e-10,
"normalise": True,
"disable_warnings": True,
Expand All @@ -371,7 +364,6 @@ def test_completeness(
{
"a_batch_generate": True,
"init": {
"n_samples": 1,
"eps": 1e-10,
"normalise": True,
"disable_warnings": True,
Expand Down

0 comments on commit 4d2d59e

Please sign in to comment.