Class/Object

org.platanios.tensorflow.api.ops.training.optimizers.schedules

ExponentialDecay

Related Docs: object ExponentialDecay | package schedules

Permalink

class ExponentialDecay extends Schedule

Exponential decay method.

This method applies an exponential decay function to a provided initial learning rate (i.e., value). It requires a step value to be provided in it's application function, in order to compute the decayed learning rate. You may simply pass a TensorFlow variable that you increment at each training step.

The decayed value is computed as follows:

decayed = value * decayRate ^ (step / decaySteps)

where if staircase = true, then (step / decaySteps) is an integer division and the decayed learning rate follows a staircase function.

Linear Supertypes
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ExponentialDecay
  2. Schedule
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new ExponentialDecay(decayRate: Float, decaySteps: Int, staircase: Boolean = false, startStep: Long = 0L, name: String = "ExponentialDecay")

    Permalink

    decayRate

    Decay rate.

    decaySteps

    Decay steps.

    staircase

    If true, the decay will occur at discrete intervals.

    startStep

    Step after which to start decaying the learning rate.

    Attributes
    protected

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. def >>(other: Schedule): ComposedSchedule

    Permalink

    Composes the provided other schedule with this schedule and returns the resulting schedule.

    Composes the provided other schedule with this schedule and returns the resulting schedule.

    Definition Classes
    Schedule
  5. def apply(value: Output, step: Option[variables.Variable]): Output

    Permalink

    Applies the decay method to value, the current iteration in the optimization loop is step and returns the result.

    Applies the decay method to value, the current iteration in the optimization loop is step and returns the result.

    value

    Value to decay.

    step

    Option containing current iteration in the optimization loop, if one has been provided.

    returns

    Decayed value.

    Definition Classes
    ExponentialDecaySchedule
    Annotations
    @throws( ... )
    Exceptions thrown

    IllegalArgumentException If the decay method requires a value for step but the provided option is empty.

  6. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  7. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  8. def compose(other: Schedule): ComposedSchedule

    Permalink

    Composes this schedule with the provided, other schedule and returns the resulting schedule.

    Composes this schedule with the provided, other schedule and returns the resulting schedule.

    Definition Classes
    Schedule
  9. val decayRate: Float

    Permalink

    Decay rate.

  10. val decaySteps: Int

    Permalink

    Decay steps.

  11. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  12. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  13. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  14. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  15. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  16. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  17. val name: String

    Permalink
  18. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  19. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  20. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  21. val staircase: Boolean

    Permalink

    If true, the decay will occur at discrete intervals.

  22. val startStep: Long

    Permalink

    Step after which to start decaying the learning rate.

  23. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  24. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  25. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  26. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  27. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Schedule

Inherited from AnyRef

Inherited from Any

Ungrouped