Class/Object

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

CycleLinear10xDecay

Related Docs: object CycleLinear10xDecay | package schedules

Permalink

class CycleLinear10xDecay extends Schedule

Cycle-linear 10x decay method.

This method applies a cycle-linear 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:

cyclePosition = 1 - abs(((step % (2 * cycleSteps)) - cycleSteps) / cycleSteps)
decayed = value * (0.1 + cyclePosition) * 3
Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. CycleLinear10xDecay
  2. Schedule
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new CycleLinear10xDecay(cycleSteps: Int, startStep: Long = 0L, name: String = "CycleLinear10xDecay")

    Permalink

    cycleSteps

    Cycle linear decay cycle in terms of number of steps.

    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
    CycleLinear10xDecaySchedule
    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 cycleSteps: Int

    Permalink

    Cycle linear decay cycle in terms of number of steps.

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

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

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

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

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

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

    Permalink
    Definition Classes
    Any
  16. val name: String

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

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

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

    Permalink
    Definition Classes
    AnyRef
  20. val startStep: Long

    Permalink

    Step after which to start decaying the learning rate.

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

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

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

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

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

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

Inherited from Schedule

Inherited from AnyRef

Inherited from Any

Ungrouped