Skip to content

Commit 785bc4a

Browse files
committed
benchUpdated
Signed-off-by: giandos200 <[email protected]>
1 parent bf26169 commit 785bc4a

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

docs/source/notebooks/Benchmarking_different_CF_explanation_methods.ipynb

+2-2
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,7 @@
274274
" for q in query_instances:\n",
275275
" if q in d.categorical_feature_names:\n",
276276
" query_instances.loc[:, q] = \\\n",
277-
" [random.choice(dataset[q].unique()) for _ in query_instances.index]\n",
277+
" [random.choice(dataset[q].values.unique()) for _ in query_instances.index]\n",
278278
" else:\n",
279279
" query_instances.loc[:, q] = \\\n",
280280
" [np.random.uniform(dataset[q].min(), dataset[q].max()) for _ in query_instances.index]\n",
@@ -329,4 +329,4 @@
329329
},
330330
"nbformat": 4,
331331
"nbformat_minor": 5
332-
}
332+
}

tests/test_dice_interface/test_explainer_base.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -181,8 +181,8 @@ def test_global_feature_importance_error_conditions_with_insufficient_cfs_per_qu
181181
with pytest.raises(
182182
UserConfigValidationException,
183183
match="The number of counterfactuals generated per query instance should be "
184-
"greater than or equal to 10 "
185-
"to compute global feature importance over all query points"):
184+
"greater than or equal to 10 "
185+
"to compute global feature importance over all query points"):
186186
exp.global_feature_importance(
187187
query_instances=None,
188188
cf_examples_list=cf_explanations.cf_examples_list)

0 commit comments

Comments
 (0)