pyreal
pyreal copied to clipboard
Allow shap explainers to support uncallable models
Currently, shap does not work on models that aren't callable (ie, calling the model directly makes predictions). Pyreal, however, only requires models to have .predict() functions. We can fix this by automatically choosing a KernelShap when the model isn't callable.