Options
All
  • Public
  • Public/Protected
  • All
Menu

Class InverseRate

Inverse Exponential Learning Rate

The learning rate will exponentially decrease.

The rate at iteration is calculated as: rate = baseRate * Math.pow(1 + gamma * iteration, -power)

Hierarchy

Index

Constructors

Properties

Methods

Constructors

constructor

  • new InverseRate(baseRate: number, gamma?: number, power?: number): InverseRate
  • Constructs a step rate policy.

    Parameters

    • baseRate: number

      the rate at first iteration

    • Default value gamma: number = 0.001
    • Default value power: number = 2

    Returns InverseRate

Properties

Protected Readonly baseRate

baseRate: number

The rate at the first iteration.

Private Readonly gamma

gamma: number

Learning rate decay per iteration; - 0 < gamma < 1 - large gamma CAN cause networks to converge too quickly and stop learning, low gamma CAN cause networks to converge to learn VERY slowly

Private Readonly power

power: number

Decay rate per iteration - 0 < power - large power CAN cause networks to stop learning quickly, low power CAN cause networks to learn VERY slowly

Methods

calc

  • calc(iteration: number): number
  • Calculates the current training rate.

    Parameters

    • iteration: number

      count

    Returns number

    the current training rate

Generated using TypeDoc