Help protect the Great Barrier Reef with TensorFlow on Kaggle Join Challenge

tf.keras.optimizers.schedules.serialize

Serializes a LearningRateSchedule into a JSON-compatible representation.

learning_rate_schedule The LearningRateSchedule object to serialize.

A JSON-serializable dict representing the object's config.

Example:

lr_schedule = tf.keras.optimizers.schedules.ExponentialDecay(
  0.1, decay_steps=100000, decay_rate=0.96, staircase=True)
tf.keras.optimizers.schedules.serialize(lr_schedule)
{'class_name': 'ExponentialDecay',
 'config': {'decay_rate': 0.96,
    'decay_steps': 100000,
    'initial_learning_rate': 0.1,
    'name': None,
    'staircase': True} }