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 ¶
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 ¶
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
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 ¶
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
Click to show internal directories.
Click to hide internal directories.