hyperbolic

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: 0 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 float64) *Hyperbolic

New returns a new Hyperbolic decay optimizer.

func (*Hyperbolic) Decay

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