Getting this issue while deploying neural networks model as pickle file



Hey @Samhith_S,

Thanks for sharing your question. Please check out our guidelines on posting in the forum and update your post to include your error message and a runnable code snippet both formatted as text (rather than screenshots) so that weโ€™re able to reproduce this issue.

Issue resolved

Can you share what the solution was (for future readers of this thread)?



Issue was regarding saving the keras model. Try to use save() and save_weights() to save the model and then you can use load_model() , load_weights() to retrieve the keras model.
Also while saving instead of pickle file, use either โ€˜.h5โ€™ or โ€˜.kerasโ€™

For entire project please do check my github repo GitHub - sankarapusamhith/Loan-Approval-Predictor

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.