Skip to content

Commit 09b4550

Browse files
committed
flake8 E125/W292 bestpractice reviewed
Signed-off-by: giandos200 <[email protected]>
1 parent 00dda52 commit 09b4550

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

dice_ml/explainer_interfaces/explainer_base.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -191,8 +191,8 @@ def check_query_instance_validity(self, features_to_vary, permitted_range, query
191191

192192
if feature not in features_to_vary and permitted_range is not None:
193193
if feature in permitted_range and feature in self.data_interface.continuous_feature_names:
194-
if not permitted_range[feature][0] <= query_instance[feature].values[0] <= permitted_range[feature][
195-
1]:
194+
if not permitted_range[feature][0] <= query_instance[feature].values[0] <= permitted_range[feature][\
195+
1]:
196196
raise ValueError("Feature:", feature,
197197
"is outside the permitted range and isn't allowed to vary.")
198198
elif feature in permitted_range and feature in self.data_interface.categorical_feature_names:
@@ -731,4 +731,4 @@ def _check_any_counterfactuals_computed(self, cf_examples_arr):
731731
break
732732
if no_cf_generated:
733733
raise UserConfigValidationException(
734-
"No counterfactuals found for any of the query points! Kindly check your configuration.")
734+
"No counterfactuals found for any of the query points! Kindly check your configuration.")

0 commit comments

Comments
 (0)