optimizers

package
v0.0.0-...-2fe1034 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DefaultSchedule

type DefaultSchedule struct {
	optimizers.DefaultSchedule
	ScheduleBase
}

func NewDefaultSchedule

func NewDefaultSchedule(args ...interface{}) *DefaultSchedule

func (*DefaultSchedule) ClassName

func (s *DefaultSchedule) ClassName() string

func (*DefaultSchedule) Declare

func (s *DefaultSchedule) Declare()

func (*DefaultSchedule) Init

func (s *DefaultSchedule) Init(self Schedule, args base.Args)

func (*DefaultSchedule) Initialize

func (s *DefaultSchedule) Initialize()

type GradientDescentMomentum

type GradientDescentMomentum struct {
	optimizers.GradientDescentMomentum
}

func NewGradientDescentMomentum

func NewGradientDescentMomentum(args ...interface{}) *GradientDescentMomentum

func (*GradientDescentMomentum) ClassName

func (o *GradientDescentMomentum) ClassName() string

func (*GradientDescentMomentum) Init

func (o *GradientDescentMomentum) Init(self base.Object, args base.Args)

type MultiOptimizer

type MultiOptimizer struct {
	optimizers.MultiOptimizer
}

func NewMultiOptimizer

func NewMultiOptimizer(
	optimizerMapping map[string]Optimizer, args ...interface{}) *MultiOptimizer

func (*MultiOptimizer) ClassName

func (o *MultiOptimizer) ClassName() string

func (*MultiOptimizer) Init

func (o *MultiOptimizer) Init(
	self base.Object, optimizerMapping map[string]Optimizer, args base.Args)

type Optimizer

type Optimizer interface {
	optimizers.Optimizer
}

type PowerSchedule

type PowerSchedule struct {
	optimizers.PowerSchedule
	ScheduleBase
}

func NewPowerSchedule

func NewPowerSchedule(args ...interface{}) *PowerSchedule

func (*PowerSchedule) ClassName

func (s *PowerSchedule) ClassName() string

func (*PowerSchedule) Declare

func (s *PowerSchedule) Declare()

func (*PowerSchedule) Init

func (s *PowerSchedule) Init(self Schedule, args base.Args)

func (*PowerSchedule) Initialize

func (s *PowerSchedule) Initialize()

type Schedule

type Schedule interface {
	optimizers.Schedule
	generators.GlobalObject
}

type ScheduleBase

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

func (*ScheduleBase) GetLearningRate

func (s *ScheduleBase) GetLearningRate(learningRate float64, epoch backends.Value) backends.Value

func (*ScheduleBase) Init

func (s *ScheduleBase) Init(self Schedule)

type StepSchedule

type StepSchedule struct {
	optimizers.StepSchedule
	ScheduleBase
}

func NewStepSchedule

func NewStepSchedule(args ...interface{}) *StepSchedule

func (*StepSchedule) ClassName

func (s *StepSchedule) ClassName() string

func (*StepSchedule) Declare

func (s *StepSchedule) Declare()

func (*StepSchedule) Init

func (s *StepSchedule) Init(self Schedule, args base.Args)

func (*StepSchedule) Initialize

func (s *StepSchedule) Initialize()

Jump to

Keyboard shortcuts

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