Haskell implementations of various ML algorithms.
Haskell
Latest commit 593ab6d May 29, 2014 @ajtulloch Cleanups.
Summary:

Test Plan:

Reviewers:

CC:
Permalink
Failed to load latest commit information.
MachineLearning Cleanups. May 29, 2014
.gitignore
LICENSE
MachineLearning.cabal Random subsample of features. May 21, 2014
README.md Add a Bitdeli badge to README Nov 23, 2013
Setup.hs
decisiontrees.proto [Machine Learning] Using Google Protocol Buffers for common records Nov 3, 2013

README.md

MachineLearning in Haskell

This is a library implementing some basic machine learning algorithms.

Hopfield Networks

To run the demonstration, run MachineLearning/HopfieldDemonstration.hs. It demonstrates the training of a network on an O and an X, and shows the network reconstructing the trained patterns from a perturbed version.

~/Code/haskell/machinelearning $ runhaskell MachineLearning/HopfieldDemonstration.hs
Training patterns
--------
|X    X|
| X  X |
|  XX  |
|  XX  |
|  XX  |
| X  X |
|X    X|
--------
--------
|XXXXXX|
|X    X|
|X    X|
|X    X|
|X    X|
|X    X|
|XXXXXX|
--------
Validation
("Corruption error",6.3245554)
("Reproduction error",0.0)
"Original"
--------
|X    X|
| X  X |
|  XX  |
|  XX  |
|  XX  |
| X  X |
|X    X|
--------
"Corrupted"
--------
|X  X X|
|    X |
|X XXXX|
|  XX  |
|  XXX |
| XX X |
|X XXXX|
--------
"Reproduction"
--------
|X    X|
| X  X |
|  XX  |
|  XX  |
|  XX  |
| X  X |
|X    X|
--------
("Corruption error",6.6332498)
("Reproduction error",0.0)
"Original"
--------
|XXXXXX|
|X    X|
|X    X|
|X    X|
|X    X|
|X    X|
|XXXXXX|
--------
"Corrupted"
--------
|XXXXXX|
|     X|
|     X|
| X X X|
|X  X  |
|  XX X|
|X XXXX|
--------
"Reproduction"
--------
|XXXXXX|
|X    X|
|X    X|
|X    X|
|X    X|
|X    X|
|XXXXXX|
--------

Bitdeli Badge