You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm currently getting the following error when attempting to explain a NLP model:
Traceback (most recent call last):
File "/Users/rak/Documents/giskard/python-client/giskard/ml_worker/core/model_explanation.py", line 67, in explain_text
text_explainer.fit(text_document, prediction_function)
File "/Users/rak/Documents/giskard/python-client/.venv/lib/python3.7/site-packages/eli5/lime/lime.py", line 265, in fit
random_state=self.rng_
File "/Users/rak/Documents/giskard/python-client/.venv/lib/python3.7/site-packages/eli5/lime/lime.py", line 367, in _train_local_classifier
random_state=rng)
File "/Users/rak/Documents/giskard/python-client/.venv/lib/python3.7/site-packages/eli5/lime/utils.py", line 32, in fit_proba
random_state=random_state,
File "/Users/rak/Documents/giskard/python-client/.venv/lib/python3.7/site-packages/eli5/lime/utils.py", line 111, in expanded_X_y_sample_weights
sample_weight
File "/Users/rak/Documents/giskard/python-client/.venv/lib/python3.7/site-packages/eli5/lime/utils.py", line 145, in expand_dataset
for label in rng.choice(classes, size=factor, p=probs):
File "mtrand.pyx", line 937, in numpy.random.mtrand.RandomState.choice
ValueError: probabilities are not non-negative
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/Users/rak/Documents/giskard/python-client/giskard/ml_worker/utils/error_interceptor.py", line 43, in wrapper
res = behavior(request, context)
File "/Users/rak/Documents/giskard/python-client/giskard/ml_worker/server/ml_worker_service.py", line 182, in explainText
html_response = explain_text(model, input_df, text_column, text_document, n_samples)._repr_html_()
File "/Users/rak/Documents/giskard/python-client/giskard/ml_worker/utils/logging.py", line 74, in wrap
result = fn(*args, **kw)
File "/Users/rak/Documents/giskard/python-client/giskard/ml_worker/core/model_explanation.py", line 71, in explain_text
raise Exception("Failed to create text explanation") from e
Exception: Failed to create text explanation
GSK-393
I'm currently getting the following error when attempting to explain a NLP model:
Project: Giskard
Reporter: rabah
Created: 2022-11-30
The text was updated successfully, but these errors were encountered: