Hello all,
I am using Keras on R and I wish to save weights after each epochs for later diagnosis.
I am unable to understand the argument filepath
from the documentation
According to the documentation - filepath
can contain named formatting options, which will be filled the value of epoch and keys in logs (passed in on_epoch_end). For example: if filepath is weights.{epoch:02d}-{val_loss:.2f}.hdf5
, then the model checkpoints will be saved with the epoch number and the validation loss in the filename.
Can someone please explain the expression - weights.{epoch:02d}-{val_loss:.2f}.hdf5
.
a. What are the meaning of all the special characters here?
b. What does :02d and :.2f mean?
c. In R, we use $ or [ ] or [[ ]] or ( ) to extract elements, what does the . (dot) signify?
Thanks