isberg/elm-ann/1.0.0

NOTE: the latest version is 1.6.2

Network

Basic module for creating and using Artificial Neural Networks (ANNs).

type Network

Representing an Artificial Neural Network

Network.create [(1, 0.5), (2, -0.1)] [(1, 2, -0.5)]
create : List ( Int, Float ) -> List ( Int, Int, Float ) -> Network

create function

Network.create [(1, 0.5), (2, -0.1)] [(1, 2, -0.5)]
setValues : List ( Int, Float ) -> Network -> Network

setValues is used to set values of input nodes

someNetwork |> Network.setValues [(0, 1), (1, -0.5)]

activate updates the network node values using the Step function

someNetwork |> Network.activate 
toString : Network -> String

convert Network to String representation

someNetwork |> Network.toString