Haskell library implementing foundamental machine learning algorithms. Developed for the "Introduction to Machine Learning" course at the University of Trento (2024/2025).
Each algorithm implemented in this library is organized into 3 files:
src/AlgorithmName.hs: implementation codetheory/AlgorithmName.md: mathematical derivation, explanations, proofsexample/algorithm-name.hs: usage example
To run the examples:
cabal run algorithm-nameMathematical Framework for ML
Formal definitions and theoretical basis for all implementations
Source • Theory
Polynomial Regression
Non-linear regression through polynomial basis expansion
Source • Theory • Example
k-Nearest Neighbors
Non parametric classifier
Source • Theory • Example