keras随着epoch及loss变化情况动态调整学习率,主要利用Callback, ReduceLROnPlateau来实现
import keras.backend as K
from keras.callbacks import Callback, TensorBoard, ReduceLROnPlateau, ModelCheckpoint
class LrReducer(Callback):
def __init__(self, base_lr = 0.01, max_epoch = 150, power=0.9, verbose=