exponential

package
v0.4.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 17, 2021 License: BSD-2-Clause Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Exponential

type Exponential struct {
	// contains filtered or unexported fields
}

Exponential defines an exponential decay depending on the time step:

lr = exp((times - t) * log(lr) + log(final))

func New

func New(init, final mat.Float, iter int) *Exponential

New returns a new Exponential decay optimizer.

func (*Exponential) Decay

func (d *Exponential) Decay(lr mat.Float, t int) mat.Float

Decay calculates the decay of the learning rate lr at time t.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL