sgd

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2020 License: BSD-2-Clause Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	gd.MethodConfig
	LR       float64
	Mu       float64
	Nesterov bool
}

func NewConfig

func NewConfig(lr, momentum float64, nesterov bool) Config

type SGD

type SGD struct {
	Config
	Alpha float64
}

func New

func New(c Config) *SGD

func (*SGD) Delta

func (o *SGD) Delta(param *nn.Param) mat.Matrix

func (*SGD) Label

func (o *SGD) Label() int

func (*SGD) NewSupport

func (o *SGD) NewSupport(r, c int) *nn.Payload

Jump to

Keyboard shortcuts

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