nn-0.2.0: A tiny neural network

Safe HaskellSafe
LanguageHaskell2010

AI.Nn

Description

This module contains everything related to the main library interface

Since: 0.1.0

Synopsis

Documentation

type Network = Network' () Source #

The network

Since: 0.1.0

predict :: Network -> [Double] -> [Double] Source #

Calculates the output of a network for a given input vector

Since: 0.1.0

new :: [Int] -> IO Network Source #

Create a new standard network for a number of layer and neurons

Since: 0.1.0

train :: Double -> Network -> [([Double], [Double])] -> Network Source #

Trains a network with a set of vector pairs until the global error is smaller than epsilon

Since: 0.1.0