Documentation ¶
Index ¶
- type Layer
- func (l Layer) Activate(in []float64) *Layer
- func (l Layer) Deltas() []float64
- func (l Layer) Error() float64
- func (l Layer) InitWeights() *Layer
- func (l Layer) Out() (ret []float64)
- func (l Layer) SetExpectations(e []float64) *Layer
- func (l Layer) UpdateWeights(speed float64, momentum float64, nextLayerDeltas []float64) *Layer
- func (l Layer) W() *mat.Dense
- func (l Layer) WithActivation() *Layer
- func (l Layer) WithDimensions(icount, ncount uint) *Layer
- type Network
- type Neyron
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Layer ¶
type Layer struct { F common.Activation N []*Neyron // contains filtered or unexported fields }
func NewLayer ¶
func NewLayer(F common.Activation) *Layer
func (Layer) InitWeights ¶
func (Layer) SetExpectations ¶
func (Layer) UpdateWeights ¶
func (Layer) WithActivation ¶
func (Layer) WithDimensions ¶
type Network ¶
type Network struct { F common.Activation N uint L []*Layer }
func NewNetwork ¶
func NewNetwork(f common.Activation, ninputs uint) *Network
func (Network) BackPropagate ¶
type Neyron ¶
type Neyron struct { F common.Activation IsActivation bool // Weights W []float64 D []float64 // Inputs In []float64 // Output Out float64 // Expectation E float64 }
func NewNeyron ¶
func NewNeyron(F common.Activation) *Neyron
func (Neyron) InitWeights ¶
func (Neyron) UpdateWeights ¶
func (Neyron) WithInputs ¶
Click to show internal directories.
Click to hide internal directories.