Callbacks


Callbacks

  • tf.keras.callbacks.ReduceLROnPlateau

    • Reduce learning rate when a metric has stopped improving.
    • Example
    reduce_lr = ReduceLROnPlateau(monitor='val_loss', factor=0.2,patience=5, min_lr=0.001)
    model.fit(X_train, Y_train, callbacks=[reduce_lr])