Copyright | (c) Leon Medvinsky, 2015 |
---|---|
License | GPL-3 |
Maintainer | lmedvinsky@hotmail.com |
Stability | experimental |
Portability | ghc |
Safe Haskell | None |
Language | Haskell2010 |
- modSig :: Double -> Double
- data Network = Network {}
- data Neuron = Neuron {
- activation :: Double
- connections :: Map NodeId Double
- yHint :: Rational
- mkPhenotype :: Genome -> Network
- stepNeuron :: Map NodeId Double -> Neuron -> Neuron
- stepNetwork :: Network -> [Double] -> Network
- snapshot :: Network -> [Double] -> Network
- getOutput :: Network -> [Double]
Sigmoid
Network
Sparse recurrent network, like those made by NEAT
Neuron
A single neuron
Neuron | |
|
Construction
mkPhenotype :: Genome -> Network Source
Updates
stepNeuron :: Map NodeId Double -> Neuron -> Neuron Source
Takes the previous step's activations and current inputs and gives a function to update a neuron.
stepNetwork :: Network -> [Double] -> Network Source
Steps a network one step. Takes the network and the current input, minus the bias.