exponential

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2023 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 float64, iter int) *Exponential

New returns a new Exponential decay optimizer.

func (*Exponential) Decay

func (d *Exponential) Decay(lr float64, t int) float64

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