Skip to content

Commit

Permalink
benchUpdated
Browse files Browse the repository at this point in the history
  • Loading branch information
giandos200 committed Jan 14, 2022
1 parent 1716a33 commit 19f2e47
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,7 @@
" for q in query_instances:\n",
" if q in d.categorical_feature_names:\n",
" query_instances.loc[:, q] = \\\n",
" [random.choice(dataset[q].unique()) for _ in query_instances.index]\n",
" [random.choice(dataset[q].values.unique()) for _ in query_instances.index]\n",
" else:\n",
" query_instances.loc[:, q] = \\\n",
" [np.random.uniform(dataset[q].min(), dataset[q].max()) for _ in query_instances.index]\n",
Expand Down Expand Up @@ -329,4 +329,4 @@
},
"nbformat": 4,
"nbformat_minor": 5
}
}
4 changes: 2 additions & 2 deletions tests/test_dice_interface/test_explainer_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -181,8 +181,8 @@ def test_global_feature_importance_error_conditions_with_insufficient_cfs_per_qu
with pytest.raises(
UserConfigValidationException,
match="The number of counterfactuals generated per query instance should be "
"greater than or equal to 10 "
"to compute global feature importance over all query points"):
"greater than or equal to 10 "
"to compute global feature importance over all query points"):
exp.global_feature_importance(
query_instances=None,
cf_examples_list=cf_explanations.cf_examples_list)
Expand Down

0 comments on commit 19f2e47

Please sign in to comment.