optimizer

package
v0.0.0-...-6a15580 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IOptimizer

type IOptimizer interface {
	CalculateDelta(grad float64) float64
	CallMe() string
}

func Generate

func Generate(attr *profile.Attr) (optimizer IOptimizer, err error)

type SGD

type SGD struct {
	Alpha      float64
	M          float64
	IsNesterov bool
	V          float64
}

func NewSGD

func NewSGD() *SGD

func (*SGD) CalculateDelta

func (o *SGD) CalculateDelta(grad float64) float64

func (*SGD) CallMe

func (o *SGD) CallMe() string

Jump to

Keyboard shortcuts

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