hyperbolic

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 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 Hyperbolic

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

Hyperbolic defines an hyperbolic decay depending on the time step

lr = lr / (1 + rate*t).

func New

func New(init, final, rate mat.Float) *Hyperbolic

New returns a new Hyperbolic decay optimizer.

func (*Hyperbolic) Decay

func (d *Hyperbolic) 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