feedforward

package
v0.0.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Layer

type Layer struct {
	Nodes []*Node
}

type Network

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

func Load

func Load(src io.Reader, opt ...NetworkOpt) (*Network, error)

func New

func New(opt ...NetworkOpt) *Network

func (*Network) EpochStats

func (nn *Network) EpochStats(epoch int) stats.Epoch

func (*Network) Predict

func (nn *Network) Predict(input []float64) []float64

func (*Network) Save

func (nn *Network) Save(w io.Writer) error

func (*Network) String

func (nn *Network) String() string

func (*Network) Train

func (nn *Network) Train(epochs int, inputs, targets [][]float64, callback func(int) bool)

func (*Network) TrainingDuration

func (nn *Network) TrainingDuration() time.Duration

type NetworkOpt

type NetworkOpt func(*networkOpts)

func Activation

func Activation(v func(float64) float64) NetworkOpt

func ActivationDerivative

func ActivationDerivative(v func(float64) float64) NetworkOpt

func LearningRate

func LearningRate(v float64) NetworkOpt

func Shapes

func Shapes(v []int) NetworkOpt

type Node

type Node struct {
	Weights []float64
	Bias    float64
}

Jump to

Keyboard shortcuts

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