Shap: KernelExplainer not support sklearn.svm.SVR?

Created on 23 Mar 2019  路  1Comment  路  Source: slundberg/shap

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.

Most helpful comment

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,

>All comments

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,

Was this page helpful?
0 / 5 - 0 ratings