Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Perceptron = func(module *ml.Module, weights xmath.VectorGenerator) NeuronFactory { return func(p int, meta net.Meta) *Neuron { return &Neuron{ Module: *module, memory: memory{ input: xmath.Vec(p), }, Meta: meta, learn: learn{ weights: weights(p, meta.Index), }, } } }
Functions ¶
This section is empty.
Types ¶
type Layer ¶
type Layer struct {
// contains filtered or unexported fields
}
Layer represents a layer in the network, it will receive a vector of inputs and transform them into another vectopr of inputs. Not necessarily of the same size.
func NewLayer ¶
func NewLayer(n, m int, factory net.NeuronFactory, index int) *Layer
NewLayer creates a new layer.
func (*Layer) Backward ¶
Backward receives all the errors/diffs from the following layer it returns the errors/diffs for the previous layer
func (*Layer) Forward ¶
Forward takes as input the outputs of all the neurons of the previous layer it returns the output of all the neurons of the current layer
type NeuronFactory ¶
NeuronFactory is a factory for construction of neuron within the context of a neuron layer / network
Click to show internal directories.
Click to hide internal directories.