Skip to content
/ PRMLT Public

Matlab code of machine learning algorithms in book PRML

License

Notifications You must be signed in to change notification settings

PRML/PRMLT

Folders and files

NameName
Last commit message
Last commit date

Latest commit

2e96df7 · Nov 15, 2017
Oct 22, 2017
Mar 11, 2017
Mar 11, 2017
Mar 9, 2017
Jun 1, 2017
Mar 13, 2017
Mar 11, 2017
May 28, 2017
Mar 13, 2017
Mar 25, 2017
Mar 9, 2017
Mar 20, 2016
Mar 10, 2017
Mar 20, 2016
Aug 26, 2017
May 28, 2017
Jan 28, 2016
Nov 15, 2017
Sep 14, 2012

Repository files navigation

Introduction

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).

Note: this package requires Matlab R2016b or latter, since it utilizes a new syntax of Matlab called Implicit expansion (a.k.a. broadcasting in Python).

Description

While developing this package, I stick to following principles

  • Succinct: The code is extremely terse. Minimizing the number of lines is one of the primal goals. As a result, the core of the algorithms can be easily spot.
  • Efficient: Many tricks for making Matlab scripts fast were applied (eg. vectorization and matrix factorization). Many functions are even comparable with C implementations. Usually, functions in this package are orders faster than Matlab builtin ones which provide the same functionality (eg. kmeans). If anyone have found any Matlab implementation that is faster than mine, I am happy to further optimize.
  • Robust: Many tricks for numerical stability are applied, such as probability computation in log scale and square root matrix update to enforce matrix symmetry, etc.
  • Readable: The code is heavily commented. Reference formulas in PRML book are indicated for corresponding code lines. Symbols are in sync with the book.
  • Practical: The package is designed not only to be easily read, but also to be easily used to facilitate ML research. Many functions in this package are already widely used (see Matlab file exchange).

Installation

  1. Download the package to your local path (e.g. PRMLT/) by running: git clone https://github.com/PRML/PRMLT.git.

  2. Run Matlab and navigate to PRMLT/, then run the init.m script.

  3. Try demos in PRMLT/demo directory to verify installation correctness. Enjoy!

FeedBack

If you found any bug or have any suggestion, please do file issues. I am graceful for any feedback and will do my best to improve this package.

License

Currently Released Under GPLv3

Contact

sth4nth at gmail dot com