从keras的github issue中学习了几个技巧,记录如下:
(一)return best model
Is the only -- currently existing -- solution, to save the weights to a hdf5 file using ModelCheckpoint and then loading the file again and applying it to a model, which is then returned?
so something similar to this: