I am trying to find the best learning rate by multiplying the learning rate by a constant factor and them training the model on the the varying learning rates .I need to choose the learning rate at the turning point where the loss starts to increase again. To do this I need to visualize the learning rate vs loss plot. How do I do this.
Method for varying rate is
import math
l_rates = []
def schedule(epoch , lr):
lr_new = lr * math.exp(math.log10(math.pow(10,6))/500)
l_rates.append(lr_new)
return lr_new
lr_scheduler_cb = keras.callbacks.LearningRateScheduler(schedule)
learning_rate_history = model1.fit(train_x , train_y , epochs=500 ,
callbacks=[lr_scheduler_cb])