neuralnetworking

package module
v0.0.0-...-1ace59a Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2019 License: GPL-3.0 Imports: 2 Imported by: 1

README

neuralnetworking

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Layer

type Layer struct {
	Neurons []Neuron
}

func BuildLayer

func BuildLayer(previousLayer int, thisLayer int) Layer

func (Layer) CalculateOutput

func (l Layer) CalculateOutput(previousLayer []float64) []float64

type Network

type Network struct {
	Layers []Layer
}

func BuildNetwork

func BuildNetwork(descriptor []int) Network

func BuildRandomNetwork

func BuildRandomNetwork(descriptor []int) Network

func (Network) CalculateOutput

func (n Network) CalculateOutput(initialLayer []float64) []float64

func (*Network) Mutate

func (b *Network) Mutate(biasMutationFactor float64, biasMutationProbability float64, weightMutationFactor float64, weightMutationProbability float64, descriptor []int) Network

func (*Network) Randomize

func (n *Network) Randomize()

type Neuron

type Neuron struct {
	Weights []float64
	Bias    float64
}

func BuildNeuron

func BuildNeuron(previousLayer int) Neuron

func (Neuron) CalculateOutput

func (n Neuron) CalculateOutput(previousLayer []float64) float64

Jump to

Keyboard shortcuts

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