This package is a Matlab implementation of the algorithms described in the classical machine learning textbook: Pattern Recognition and Machine Learning by C. Bishop (PRML).
The design goal of the code are as follows:
- Clean: Code is very succinct. There are little nasty guarding code that distracts readers' attention. As a result, the core of the algorithms can be easily spot.
- Efficient: My tricks for making Matlab scripts efficient were applied (eg. vectorization and matrix factorization). Many functions are even comparable with C implementation. Usually, functions in this package are orders faster than Matlab builtin functions which provide the same functionality (eg. kmeans). If anyone found any Matlab implementation that is faster than mine, I am happy to further optimize.
- Robust: Many numerical stability techniques are applied, such as probability computation in log scale to avoid numerical underflow and overflow, square root form update of symmetric matrix, etc.
- Easy to learn: The code is heavily commented. Reference formulas in PRML book are indicated for corresponding code lines.
- Practical: The package is designed not only to learn the algorithms in the book, but also to facilitate ML research. Many functions in this package are already among the top downloads in Matlab file exchange site and widely used.
-
Download the package by running:
git clone https://github.com/PRML/PRMLT.git
. -
Run Matlab and navigate to package location as working directory, then run the init.m script.
-
Run some demos in the demo directory. Enjoy!
Currently Released Under GPLv3
sth4nth at gmail dot com