Open dhawalkp opened 2 years ago
Thanks for reporting the issue.
I think the problem is that you passed the Model object instead of the model name to the ModelConfig object.
Assume that model is the Model object, then this should work
model_config = clarify.ModelConfig(
model_name=model.name, # The model_name parameter expects the model name string.
...
)
The docstring of the model_name parameter looks confusing, we will fix it.
model_name (str) – Model name (as created by ‘CreateModel’).
Cross-reference: internal tracking task https://tiny.amazon.com/vu2katay
Describe the bug clarify_processor.run_explainability throws TypeError: can't pickle SSLContext objects
To reproduce
Expected behavior Should not throw any error
Screenshots or logs
TypeError Traceback (most recent call last)