nn-0.2.0: A tiny neural network
AI.Nn
Description
This module contains everything related to the main library interface
Since: 0.1.0
Synopsis
type Network = Network' () Source #
The network
predict :: Network -> [Double] -> [Double] Source #
Calculates the output of a network for a given input vector
new :: [Int] -> IO Network Source #
Create a new standard network for a number of layer and neurons
train :: Double -> Network -> [([Double], [Double])] -> Network Source #
Trains a network with a set of vector pairs until the global error is smaller than epsilon