Contents

1 Description

HNN (stands for Haskell Neural Network library) is an attempt at providing a simple but powerful and efficient library to deal with feed-forward neural networks in Haskell.

2 Why another neural network library ?

I tried HFANN and few other code I found before deciding to write my own library. But I wasn't satisfied with them. THey are more comprehensive but they were not to be used the way I intended to, for a Haskell neural network library. Mine is much simpler, less comprehensive but is an attempt at easily creating, training and using neural networks in Haskell, without performance losses. Note : HNN is full-Haskell unlike HFANN which is a binding to a C library.

3 Get the code

3.1 From Hackage

hnn-0.1 will be on Hackage in the upcoming days, in the AI category. At that moment, a simple :

cabal install hnn

should install HNN for you.
(You may need to do a cabal update before so that cabal will be aware of the new package named hnn -- and of course of the other new packages or new versions of the packages)

3.2 From the git repository

HNN is hosted on github : [1]
The instructions to get it and build it are :

After these commands, provided you also have the 'base' (>= 3 && <= 5) and 'uvector' packages installed, HNN will be installed just like any other library. To generate the documentation, you have to execute :

cabal haddock

The documentation should then be in HNN/dist/doc/.

You can see the xor-3input.hs file for an example of use of the library (see HNN#Example on this page).

4 Documentation

There is an online version of the documentation here : [2] but there should be the same doc soon on the hackage page of hnn.