'SHAP local_accuracy

When calculating local_accuracy from metrics.py I got the following error :

NameError: name 'pickle' is not defined

from shap.benchmark import metrics
metrics.local_accuracy(X, y, poly_svr,"tree" )

error



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source