feedforward

package
v0.0.0-...-41d7962 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2023 License: BSD-3-Clause Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// ComplexWindow is the distribution window
	ComplexWindow = 16
	// ComplexMiddle is the width of the middle layer
	ComplexMiddle = 16
)
View Source
const (
	// Window is the distribution window
	Window = 16
	// Middle is the width of the middle layer
	Middle = 16
)
View Source
const (
	// QuatWindow is the distribution window
	QuatWindow = 16
	// QuatMiddle is the width of the middle layer
	QuatMiddle = 16
	// QuatCount is the number of samples
	QuatCount = 256
)

Variables

This section is empty.

Functions

func ComplexLearn

func ComplexLearn()

ComplexLearn learn the mode

func Learn

func Learn()

Learn learn the mode

func QuatLearn

func QuatLearn()

QuatLearn learn the mode

Types

type ComplexDistribution

type ComplexDistribution struct {
	Layer1Weights []ComplexRandom
	Layer1Bias    []ComplexRandom
	Layer2Weights []ComplexRandom
	Layer2Bias    []ComplexRandom
}

ComplexDistribution is a distribution of a neural network

func NewComplexDistribution

func NewComplexDistribution(rng *rand.Rand) ComplexDistribution

NewComplexDistrution creates a new distribution of feed forward layers

func (ComplexDistribution) Sample

func (d ComplexDistribution) Sample(rng *rand.Rand) ComplexSample

Sample returns a sampled feedforward neural network

type ComplexRandom

type ComplexRandom struct {
	Mean    float64
	Stddev  float64
	IMean   float64
	IStddev float64
}

ComplexRandom is a random variable

type ComplexSample

type ComplexSample struct {
	Layer1Weights Matrix
	Layer1Bias    Matrix
	Layer2Weights Matrix
	Layer2Bias    Matrix
	Loss          float64
}

ComplexSample is a neural network sample

type Distribution

type Distribution struct {
	Layer1Weights []Random
	Layer1Bias    []Random
	Layer2Weights []Random
	Layer2Bias    []Random
	Multi         []Multi
}

Distribution is a distribution of a neural network

func NewDistribution

func NewDistribution(rng *rand.Rand) Distribution

NewDistrution creates a new distribution of feed forward layers

func (Distribution) Sample

func (d Distribution) Sample(rng *rand.Rand) Sample

Sample returns a sampled feedforward neural network

type QuatDistribution

type QuatDistribution struct {
	Layer1Weights []QuatRandom
	Layer1Bias    []QuatRandom
	Layer2Weights []QuatRandom
	Layer2Bias    []QuatRandom
}

QuatDistribution is a distribution of a neural network

func NewQuatDistribution

func NewQuatDistribution(rng *rand.Rand) QuatDistribution

NewQuatDistrution creates a new distribution of feed forward layers

func (QuatDistribution) Sample

func (d QuatDistribution) Sample(rng *rand.Rand) QuatSample

QuatSample returns a sampled feedforward neural network

type QuatRandom

type QuatRandom struct {
	Mean   [4]float64
	Stddev [4]float64
}

QuatRandom is a random variable

type QuatSample

type QuatSample struct {
	Layer1Weights Matrix
	Layer1Bias    Matrix
	Layer2Weights Matrix
	Layer2Bias    Matrix
	Loss          float64
}

QuatSample is a neural network sample

type Random

type Random struct {
	Mean   float64
	Stddev float64
}

Random is a random variable

type Sample

type Sample struct {
	Layer1Weights Matrix
	Layer1Bias    Matrix
	Layer2Weights Matrix
	Layer2Bias    Matrix
	Loss          float64
}

Sample is a neural network sample

Jump to

Keyboard shortcuts

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