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 {}
- mkPhenotype :: Genome -> Network
- stepNeuron :: IntMap Double -> Neuron -> Neuron
- stepNetwork :: Network -> [Double] -> Network
- snapshot :: Network -> [Double] -> Network
- pushThrough :: Network -> [Double] -> [Double]
- 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 :: IntMap 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.