For some experiments I'm doing sklearn.svm.SVR gets the best results. SHAP seems to support SVC but not SVR (regressor).
Is there any way to calculate shap values, graphs, etc. with this sklearn algorithm?
Greetings and thanks.
I answer myself. I just saw an example to use a regressor:
explainer = shap.KernelExplainer(model.predict, X_train)
I used model instead of model.predict.
Regards,
Most helpful comment
I answer myself. I just saw an example to use a regressor:
explainer = shap.KernelExplainer(model.predict, X_train)I used
modelinstead ofmodel.predict.Regards,