Documentation ¶
Index ¶
- type Batch
- type DataGroup
- type Layer
- func (l *Layer) ApplyGradients(learningRate, count float64)
- func (l *Layer) ClearGradients()
- func (l *Layer) Combine(other *Layer) *Layer
- func (l *Layer) ComputeDerivativesBackPropagation(front *Layer)
- func (l *Layer) ComputeDerivativesBackPropagationOutputLayer(expectedOutput []float64)
- func (l *Layer) FeedForward(incoming *Layer) *Layer
- func (l *Layer) FeedInput(input []float64) *Layer
- func (l *Layer) FetchWeight(in, out int) float64
- func (l *Layer) ResetGradients()
- func (l *Layer) UpdateGradients()
- type NeuralNetwork
- func (n *NeuralNetwork) ClearGradients()
- func (n *NeuralNetwork) Combine(other *NeuralNetwork)
- func (n *NeuralNetwork) FeedForward(input []float64)
- func (n *NeuralNetwork) GetResult() []float64
- func (n *NeuralNetwork) Train(d *DataGroup)
- func (n *NeuralNetwork) TrainDataParallel(dataGroups []DataGroup, learningRate float64, cycleCount int)
- func (n *NeuralNetwork) TrainWithoutApplyingGradients(d *DataGroup)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Layer ¶
type Layer struct { Activations []float64 WeightedInputs []float64 DerivativeValues []float64 Weights []float64 Biases []float64 WeightGradients []float64 BiasGradients []float64 Inputs []float64 NeuronInCount int NeuronOutCount int GradientUpdateCount int }
func CreateLayer ¶
func (*Layer) ApplyGradients ¶
func (*Layer) ClearGradients ¶
func (l *Layer) ClearGradients()
func (*Layer) ComputeDerivativesBackPropagation ¶
func (*Layer) ComputeDerivativesBackPropagationOutputLayer ¶
func (*Layer) FeedForward ¶
returns just a pointer to the current layer
func (*Layer) FetchWeight ¶
func (*Layer) ResetGradients ¶
func (l *Layer) ResetGradients()
func (*Layer) UpdateGradients ¶
func (l *Layer) UpdateGradients()
type NeuralNetwork ¶
func CreateNeuralNetwork ¶
func CreateNeuralNetwork(inputCount int, neuronCount ...int) *NeuralNetwork
func (*NeuralNetwork) ClearGradients ¶
func (n *NeuralNetwork) ClearGradients()
func (*NeuralNetwork) Combine ¶
func (n *NeuralNetwork) Combine(other *NeuralNetwork)
func (*NeuralNetwork) FeedForward ¶
func (n *NeuralNetwork) FeedForward(input []float64)
func (*NeuralNetwork) GetResult ¶
func (n *NeuralNetwork) GetResult() []float64
func (*NeuralNetwork) Train ¶
func (n *NeuralNetwork) Train(d *DataGroup)
func (*NeuralNetwork) TrainDataParallel ¶
func (n *NeuralNetwork) TrainDataParallel(dataGroups []DataGroup, learningRate float64, cycleCount int)
learning rate in dataGroups not used
func (*NeuralNetwork) TrainWithoutApplyingGradients ¶
func (n *NeuralNetwork) TrainWithoutApplyingGradients(d *DataGroup)
Click to show internal directories.
Click to hide internal directories.