We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 68dadc8 commit e7bf06bCopy full SHA for e7bf06b
1 file changed
dice_ml/explainer_interfaces/explainer_base.py
@@ -67,7 +67,7 @@ def _validate_counterfactual_configuration(
67
raise UserConfigValidationException('The stopping_threshold should lie between {0} and {1}'.format(
68
str(0.0), str(1.0)))
69
70
- if posthoc_sparsity_param < 0.0 or posthoc_sparsity_param > 1.0:
+ if posthoc_sparsity_param is not None and (posthoc_sparsity_param < 0.0 or posthoc_sparsity_param > 1.0):
71
raise UserConfigValidationException('The posthoc_sparsity_param should lie between {0} and {1}'.format(
72
73
0 commit comments