Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extracting the underlying Keras model from the wrapper #326

Closed
msabanluc opened this issue May 8, 2024 · 2 comments
Closed

Extracting the underlying Keras model from the wrapper #326

msabanluc opened this issue May 8, 2024 · 2 comments

Comments

@msabanluc
Copy link

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
Copy link
Owner

adriangb commented May 8, 2024

I think that already works?

@msabanluc
Copy link
Author

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants