sgd

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

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

Go to latest
Published: Mar 16, 2019 License: MIT Imports: 2 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Operation

type Operation func(*SGD)

type Option

type Option func(*SGD)

func WithBatchSize

func WithBatchSize(batchSize int) Option

func WithLearningRate

func WithLearningRate(learningRate float64) Option

type SGD

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

func New

func New(options ...Option) *SGD

func (*SGD) Add

func (o *SGD) Add(layer int, activation, cost *tensor.Vector)

func (*SGD) Init

func (o *SGD) Init(neurons *[][]int)

func (*SGD) Optimizations

func (o *SGD) Optimizations() *[][][]float64

Jump to

Keyboard shortcuts

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