Skip to content

Commit 77ca90d

Browse files
[python] Invalid argument named verbose given to ValueError (#411)
While raising a ValueError, verbose attribute was passed, which it does not take in The following error occurs when trying to instantiate Explainer object by passing a model which does not have predict method
1 parent 2441c55 commit 77ca90d

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

python/dalex/dalex/_explainer/checks.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -186,8 +186,7 @@ def check_predict_function_and_model_type(predict_function, model_type,
186186
model_info_['predict_function_default'] = True
187187

188188
if not predict_function:
189-
raise ValueError(" -> predict function : 'predict_function' not provided and cannot be extracted.",
190-
verbose=verbose)
189+
raise ValueError(" -> predict function : 'predict_function' not provided and cannot be extracted.")
191190

192191
verbose_cat(" -> predict function : " + str(predict_function) + " will be used (default)", verbose=verbose)
193192
else:

0 commit comments

Comments
 (0)