@@ -109,7 +109,7 @@ def test_sorted_local_importance_counterfactual_explanations(self):
109109 list (counterfactual_explanations .local_importance [index ].keys ())
110110
111111
112- @pytest .fixture
112+ @pytest .fixture ()
113113def random_binary_classification_exp_object ():
114114 backend = 'sklearn'
115115 dataset = helpers .load_custom_testing_dataset ()
@@ -150,7 +150,7 @@ def verify_counterfactual_explanations(self, counterfactual_explanations,
150150 assert counterfactual_explanations .summary_importance is None
151151
152152 @pytest .mark .parametrize ("version" , ['1.0' , '2.0' ])
153- @pytest .mark .parametrize ("desired_class, total_CFs" , [(0 , 2 )])
153+ @pytest .mark .parametrize (( "desired_class" , " total_CFs") , [(0 , 2 )])
154154 def test_counterfactual_explanations_output (self , desired_class ,
155155 sample_custom_query_1 , total_CFs ,
156156 version ):
@@ -172,7 +172,7 @@ def test_counterfactual_explanations_output(self, desired_class,
172172 assert recovered_counterfactual_explanations == counterfactual_explanations
173173
174174 @pytest .mark .parametrize ("version" , ['1.0' , '2.0' ])
175- @pytest .mark .parametrize ("desired_class, total_CFs" , [(0 , 10 )])
175+ @pytest .mark .parametrize (( "desired_class" , " total_CFs") , [(0 , 10 )])
176176 def test_local_importance_output (self , desired_class , sample_custom_query_1 ,
177177 total_CFs , version ):
178178 counterfactual_explanations = self .exp .local_feature_importance (
@@ -195,7 +195,7 @@ def test_local_importance_output(self, desired_class, sample_custom_query_1,
195195 assert recovered_counterfactual_explanations == counterfactual_explanations
196196
197197 @pytest .mark .parametrize ("version" , ['1.0' , '2.0' ])
198- @pytest .mark .parametrize ("desired_class, total_CFs" , [(0 , 10 )])
198+ @pytest .mark .parametrize (( "desired_class" , " total_CFs") , [(0 , 10 )])
199199 def test_summary_importance_output (self , desired_class , sample_custom_query_10 ,
200200 total_CFs , version ):
201201 counterfactual_explanations = self .exp .global_feature_importance (
@@ -242,7 +242,7 @@ def test_empty_counterfactual_explanations_object(self, version):
242242 assert counterfactual_explanations == recovered_counterfactual_explanations
243243
244244 @pytest .mark .parametrize ("version" , ['1.0' , '2.0' ])
245- @pytest .mark .parametrize ("desired_class, total_CFs" , [(0 , 2 )])
245+ @pytest .mark .parametrize (( "desired_class" , " total_CFs") , [(0 , 2 )])
246246 def test_no_counterfactuals_found (self , desired_class ,
247247 sample_custom_query_1 , total_CFs ,
248248 version ):
@@ -261,7 +261,7 @@ def test_no_counterfactuals_found(self, desired_class,
261261 assert counterfactual_explanations == recovered_counterfactual_explanations
262262
263263 @pytest .mark .parametrize ("version" , ['1.0' , '2.0' ])
264- @pytest .mark .parametrize ("desired_class, total_CFs" , [(0 , 10 )])
264+ @pytest .mark .parametrize (( "desired_class" , " total_CFs") , [(0 , 10 )])
265265 def test_no_counterfactuals_found_local_importance (self , desired_class ,
266266 sample_custom_query_1 , total_CFs ,
267267 version ):
@@ -282,7 +282,7 @@ def test_no_counterfactuals_found_local_importance(self, desired_class,
282282 assert counterfactual_explanations == recovered_counterfactual_explanations
283283
284284 @pytest .mark .parametrize ("version" , ['1.0' , '2.0' ])
285- @pytest .mark .parametrize ("desired_class, total_CFs" , [(0 , 10 )])
285+ @pytest .mark .parametrize (( "desired_class" , " total_CFs") , [(0 , 10 )])
286286 def test_no_counterfactuals_found_summary_importance (self , desired_class ,
287287 sample_custom_query_10 , total_CFs ,
288288 version ):
0 commit comments