https://github.com/ajtulloch/haskell-ml
Haskell implementations of various ML algorithms.
https://github.com/ajtulloch/haskell-ml
Last synced: 4 months ago
JSON representation
Haskell implementations of various ML algorithms.
- Host: GitHub
- URL: https://github.com/ajtulloch/haskell-ml
- Owner: ajtulloch
- License: mit
- Created: 2013-10-12T14:03:24.000Z (about 12 years ago)
- Default Branch: master
- Last Pushed: 2014-05-29T10:37:29.000Z (over 11 years ago)
- Last Synced: 2025-01-04T14:42:18.671Z (about 1 year ago)
- Language: Haskell
- Size: 219 KB
- Stars: 57
- Watchers: 5
- Forks: 7
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-machine-master - haskell-ml - Haskell implementations of various ML algorithms. (Haskell)
- awesome-machine-learning - haskell-ml - Haskell implementations of various ML algorithms. **[Deprecated]** (Haskell / [Tools](#tools-1))
- awesome-machine-learning - haskell-ml - Haskell implementations of various ML algorithms. (Haskell / Speech Recognition)
- awesome-machine-learning - haskell-ml - Haskell implementations of various ML algorithms. **[Deprecated]** (Haskell)
- fucking-awesome-machine-learning - haskell-ml - Haskell implementations of various ML algorithms. **[Deprecated]** (Haskell / [Tools](#tools-1))
- awesome-machine-learning - haskell-ml - Haskell implementations of various ML algorithms. **[Deprecated]** (Haskell / [Tools](#tools-1))
- awesome-machine-learning - haskell-ml - Haskell implementations of various ML algorithms. (Haskell / Speech Recognition)
- awesome-machine-learning - haskell-ml - Haskell implementations of various ML algorithms. **[Deprecated]** (Haskell / [Tools](#tools-1))
- awesome-advanced-metering-infrastructure - haskell-ml - Haskell implementations of various ML algorithms. (Haskell / Speech Recognition)
README
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|
--------
[](https://bitdeli.com/free "Bitdeli Badge")