2
$\begingroup$

I have read that, Pickle library is used to save trained model into a .pkl file to use it later. Also, we can save the weights of a trained model into a hdf5 format using

model.save()

and use those weights afterwards.

So why we use pickle instead of hdf5 files?

$\endgroup$
0
$\begingroup$

Avoid pickle, there are a couple of problems

Even in keras documentation they say

"It is not recommended to use pickle or cPickle to save a Keras model."

Also look at this solution.

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.