-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
KerasClassifier not compatible with latest versions of Keras and TensorFlow #2465
Comments
one of the common error i get is ( module 'tensorflow.keras.backend' has no attribute 'placeholder') |
Confirm from my side, tf and keras==2.15 shall be used. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
Model architectures comprising of Keras Sequential layers are throwing various error while attempting to be used with the KerasClassifier wrapper, for latest versions of Keras.
The errors seem to relate to TensorFlow Eager Execution, as well as TensorFlow V2 Behaviour. Even after trying all sorts of configuration, the errors seemingly cannot be resolved.
The ONLY way to use KerasClassifier successfully, is to use older versions of Keras ( e.g, 2.15.0 ) and TensorFlow ( e.g. 2.15.0 ).
To Reproduce
Steps to reproduce the behavior:
Expected behavior
A model trained/saved with the latest version of Keras, should be able to be used with KerasCassifier wrapper.
System information (please complete the following information):
The text was updated successfully, but these errors were encountered: