ValueError: File format not supported: filepath=..\ewstools\saved_classifiers\bury_pnas_21\len500\best_model_1_1_len500.pkl. Keras 3 only supports V3 .keras files and legacy H5 format files (.h5 extension). Note that the legacy SavedModel format is not supported by load_model() in Keras 3. In order to reload a TensorFlow SavedModel as an inference-only layer in Keras 3, use keras.layers.TFSMLayer(C:\Users\Murali\Desktop\Mtech\Sem4\stock\ewstools\saved_classifiers\bury_pnas_21\len500\best_model_1_1_len500.pkl, call_endpoint='serving_default') (note that your call_endpoint might have a different name).
Hi there,
It seems that the classifiers are only compatible with Keras 2.
You should be able to run the tutorials if you install Keras 2 in your virtual environment.
Tom
ValueError: File format not supported: filepath=..\ewstools\saved_classifiers\bury_pnas_21\len500\best_model_1_1_len500.pkl. Keras 3 only supports V3
.keras
files and legacy H5 format files (.h5
extension). Note that the legacy SavedModel format is not supported byload_model()
in Keras 3. In order to reload a TensorFlow SavedModel as an inference-only layer in Keras 3, usekeras.layers.TFSMLayer(C:\Users\Murali\Desktop\Mtech\Sem4\stock\ewstools\saved_classifiers\bury_pnas_21\len500\best_model_1_1_len500.pkl, call_endpoint='serving_default')
(note that yourcall_endpoint
might have a different name).Any suggestion on how to handle this error?