# LearningRateType enum

A type of learning rate strategies

Inheritance

## Constructors

LearningRateType()
const

## Values

constant → const LearningRateType

Learning rate value will be constant throughout the whole fitting process

timeBased → const LearningRateType

Learning rate value will be calculated according to the formula:

$\dpi{110} \bg_white d\eta_{n + 1}= \frac{\eta _{n}}{1+dn}\$

where:

$\dpi{110} \bg_white \[\eta_{n + 1}\$ is the learning rate value for a new iteration

$\dpi{110} \bg_white \eta_{n}$ is the learning rate value from a previous iteration

$\dpi{110} \bg_white d$ is the decay parameter

$\dpi{110} \bg_white n$ is the iteration step

stepBased → const LearningRateType

Learning rate value will be calculated according to the formula:

$\dpi{110} \bg_white \eta_{n}= \eta _{0}d^{floor(\frac{1 + n}{r})}$

where:

$\dpi{110} \bg_white \eta_{n}$ is the new learning rate value

$\dpi{110} \bg_white \eta_{0}$ is the initial learning rate value

$\dpi{110} \bg_white d$ is the decay parameter (in the context of step-based strategy, it describes, how much the learning rate should change at each drop, e.g. 0.5 means a halving)

$\dpi{110} \bg_white n$ is the iteration step

$\dpi{110} \bg_white r$ is the drop rate (how often the learning rate value should be dropped, r=5 means the rate will be dropped every 5 iterations)

exponential → const LearningRateType

Learning rate value will be calculated according to the formula:

$\dpi{110} \bg_white \eta_{n}=\eta_{0}e^{-dn}$

where:

$\dpi{110} \bg_white \eta_{n}$ is the new learning rate value

$\dpi{110} \bg_white \eta_{0}$ is the initial learning rate value

$\dpi{110} \bg_white d$ is the decay parameter

$\dpi{110} \bg_white n$ is the iteration step

## Properties

hashCode int
The hash code for this object.
no setterinherited
index int
A numeric identifier for the enumerated value.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

## Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString()
A string representation of this object.
inherited

## Operators

operator ==(Object other) bool
The equality operator.
inherited

## Constants

values → const List
A constant List of the values in this enum, in order of their declaration.