I know that it's easy to mention the number of epochs while training using fit_generator
method. I have a lot of images to train and I can't use array to load them at once, because it shows MemoryError
. I need to stop training after a certain validation accuracy, say 98%, has been reached. If the accuracy has not been achieved after the given number of epochs, the training will stop. Is there any way to do this in Keras? I am using Tensorflow backend.
Edit: I have seen EarlyStopping
module in Keras, but it only keeps track of the change of a monitored quantity.