Learn R Programming

keras (version 2.13.0)

new_learning_rate_schedule_class: Create a new learning rate schedule type

Description

Create a new learning rate schedule type

Usage

new_learning_rate_schedule_class(
  classname,
  ...,
  initialize = NULL,
  call,
  get_config = NULL
)

Value

A LearningRateSchedule class generator.

Arguments

classname

string

...

methods and properties of the schedule class

initialize, get_config

Additional recommended methods to implement.

call

function which takes a step argument (scalar integer tensor, the current training step count, and returns the new learning rate). For tracking additional state, objects self and private are automatically injected into the scope of the function.