I used this monkey patch to override the model.save function and then I am trying to save the model by adding ModelCheckpoint callback in keras. Now its throwing the error that “the model was not compiled”
File “/home/heebansa/.local/lib/python2.7/site-packages/keras/engine/training.py”, line 1014, in _standardize_user_data
raise RuntimeError(‘You must compile a model before ‘
RuntimeError: You must compile a model before training/testing. Use `model.compile(optimizer, loss)`.