isberg/elm-ann/1.5.3

NOTE: the latest version is 1.6.2

Genome

Module for doing operations on Artificial Neural Network Genomes.

type Genome

Genome represents an ANN genotype

create : Int -> Int -> Genome

Create Genome with specified number of inputs, outputs, a bias node and no hidden nodes or connections

addConnection : Int -> Int -> Float -> Genome -> Genome

Add connection between existing nodes

addNode : Int -> Int -> Genome -> Genome

Add node by replacing existing connection with a node and two connections.

modifyWeight : Int -> Int -> Float -> Genome -> Genome

modifyWeight adds the given modification to a specific connection

toString : Genome -> String

convert to string representation

create network from genome

mutate : Genome -> Generator Mutation

mutate create a mutation generator

= NoMutation
| AddConnection Int Int Float
| AddNode Int Int
| ModifyWeight Int Int Float

Representing a new mutation