-
Notifications
You must be signed in to change notification settings - Fork 50
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
Error when loading scikeras in scikit-learn pipeline on another device #249
Comments
This is interesting. SciKeras just uses TensorFlow's SavedModel under the hood, so anything that works with TensorFlow should work with SciKeras, but I can't rule out that it's a bug in SciKeras. Wold you be able to post some sort of example that I can test against? Thanks! |
If I reload it on the same device where it was dumped it works fine. Now for the moment I reverted to the
But I don't like it very much because this requires me to manage it in a special way wrt the other scikit-learn models with which I comparing it. It's hard to give you a working example out the application, but this is the code I used to build and fit it:
|
Also encountered this issue. The solution for me was to serialize using |
What operating system are you folks using? And what versions of TensorFlow and SciKeras? |
I am using ubuntu 18.04.1 with tf 2.10, scikeras 0.8.0. However, the models were created on other machines by other people (using the same conda environment), so I can't be sure which OS was used to create them. |
Is there any chance they're using Windows? I assume if you dump and load the model on your Ubuntu machine things work fine right? |
I have a Keras model wrapped with scikeras and put in a scikit-learn pipeline, I dumped it with pickle and I'd like to be able to load it on another device, but when I do the loading with pickle I get the following error:
What should I do? I can't see any option related to
experimental_io_device
in scikerasThe text was updated successfully, but these errors were encountered: