optimizers

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: 4 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type OptimizationStrategy

type OptimizationStrategy interface {
	OptimizeParams(*nn.Param) error
}

OptimizationStrategy is the interface implemented by AdaGrad, Adam, etc.

type Optimizer

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

Optimizer is an optimizer that can optimize a set of parameters.

func New

func New(parameters nn.ParamChannelFunc, strategy OptimizationStrategy) *Optimizer

New returns a new optimizer.

func (*Optimizer) Optimize

func (o *Optimizer) Optimize() error

Optimize performs the optimization of the parameters.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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