What would be the best way to do the following conditional stops or saves:
- Save weights if a new minimum error achieved,
- Save weights after M epochs have passed (incremental) or on Mth epoch (epoch number),
- Stop training N epochs after minimum error achieved.
The only way I know how to do this would be to write a script that would loop epochs where on each pass through the loop, Membrain would learn a single epoch. At the end of each epoch, error and number of epochs would be checked to determine if a save or stop was desired. I would be concerned that this script looping would slow down the training process significantly.
Any thoughts would be greatly appreciated,