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 module, 1 package

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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
⌂ 换网址