adriangb / scikeras

Scikit-Learn API wrapper for Keras.
https://www.adriangb.com/scikeras/
MIT License
239 stars 47 forks source link

Extracting the underlying Keras model from the wrapper #326

Closed msabanluc closed 4 months ago

msabanluc commented 4 months ago

Hi, I'm wondering if it is possible to extract the underlying model from the wrapper. Something like model = wrapper.model_ ? I'm trying to use the Shap DeepExplainer and it currently doesn't have support for KerasClassifier, so I'm wondering if there's potentially some workaround.

adriangb commented 4 months ago

I think that already works?

msabanluc commented 4 months ago

Hi, my apologies (and thank you for the quick response)-- I realized it was an issue with my IDE not showing the variable in the variable explorer. This does work!