Versions in this module Expand all Collapse all v0 v0.2.5 Jun 6, 2021 v0.1.1 May 9, 2021 Changes in this version + func LogisticFunc(x, a float64) float64 + type ActivationFunction func(float64) float64 + func NewLogisticFunc(a float64) ActivationFunction + type Criterion int + const Accuracy + const BalancedAccuracy + const Distance + const FMeasure + const Simple + type Enter struct + Input float64 + OutSynapses []*Synapse + func NewEnter() *Enter + func (e *Enter) ConnectTo(layer *Layer) + func (e *Enter) SetInput(val float64) + func (e *Enter) Signal() + func (e *Enter) SynapseTo(nTo *Neuron, weight float64) + type Layer struct + Neurons []*Neuron + func NewLayer(neurons int) *Layer + func (l *Layer) Calculate() + func (l *Layer) ConnectTo(layer *Layer) + type Network struct + Enters []*Enter + Layers []*Layer + Out []float64 + OutLabels map[int]string + func BuildNetwork(usage NetworkType, input int, hidden []int, labels map[int]string) *Network + func NewNetwork(in int, layers []int, labels map[int]string) *Network + func (n *Network) Calculate(enters []float64) []float64 + func (n *Network) CalculateLabels(enters []float64) map[string]float64 + func (n *Network) CalculateWinnerLabel(enters []float64) string + func (n *Network) ConnectEnters() + func (n *Network) ConnectLayers() + func (n *Network) RandomizeSynapses() + func (n *Network) SetActivationFunction(aFunc ActivationFunction) + type NetworkType int + const Classification + const Regression + type Neuron struct + ActivationFunction ActivationFunction + InSynapses []*Synapse + Out float64 + OutSynapses []*Synapse + func NewNeuron() *Neuron + func (n *Neuron) Calculate() + func (n *Neuron) SetActivationFunction(aFunc ActivationFunction) + func (n *Neuron) SynapseTo(nTo *Neuron, weight float64) + type Synapse struct + In float64 + Out float64 + Weight float64 + func NewSynapse(weight float64) *Synapse + func NewSynapseFromTo(from, to *Neuron, weight float64) *Synapse + func (s *Synapse) Signal(value float64)