I am working on cifar10 dataset with Resnet18 architecture. My need is now to reach 94 accuracy within 100 secs. So i have been advised to check validation accuracy only for the last 3 epochs. Anyone help me how to do that ?
from tensorflow.keras.callbacks import ModelCheckpoint,LearningRateScheduler
model.fit_generator(generator=gen,
steps_per_epoch=np.ceil(50000/512),
epochs=24,
validation_data=validation_iterator,
verbose=1,
callbacks =[olr])
The above code checks validation accuracy for all 24 epochs, but i want to check ONLY for last 3 epochs.