DDMAL/Calvo_classifier

Generate and save models after training.

vigliensoni opened this issue · 2 comments

For some reason, the val_acc key is no longer being recognized in the Keras ModelCheckpoint and EarlyStopping callback. If used, no models are being generated and saved. It should be changed to val_accuracy

https://github.com/DDMAL/Calvo-classifier/blob/5c3433ac61e70076b040d7c3ae0c2318465e2751/training_engine_sae.py#L115-L118

Reference: keras-team/keras#6104 (comment)

The fix was incorporated in PR #20

For some reason in Keras installed on my local computer (2.2.4) the available metrics are:

val_loss,val_acc, loss and acc

In the one on Compute Canada (2.3.0), the metrics are:

val_accuracy

Actually, the code mentions both:

https://github.com/keras-team/keras/blob/1cf5218edb23e575a827ca4d849f1d52d21b4bb0/tests/keras/callbacks/callbacks_test.py#L467-L477