Python framework for Coursera PGM and ML homeworks
Latest commit cb5af92 Sep 21, 2012 @tansaku Merge pull request #10 from ibatugow/master
local imports & tests
Failed to load latest commit information.
ML switched to local imports & added some test to ex1 Sep 21, 2012
PGM/PGM_Programming_Assignment_1 a touch more conversion on FactorTutorial - also wondering about ones… Jul 23, 2012
.gitignore updating credits and some minor changes to ipython session Sep 2, 2012


Python framework for Coursera PGM and ML homeworks

The Coursera PGM and ML classes use Octave for their homework assignments.Arguably Octave is great for novice students getting started quickly with a single package that allows them to quickly manipulate matrices etc. However many students in the PGM and ML courses have wondered if there couldn't be a Python alternative based on SciPy or other similar frameworks for Python.

While it may not be possible to create a perfect replacement for Octave many more programming experienced students would love to be working with Python rather than Octave, particularly because of support for testing, continuous integration and so forth.

This repository is a placeholder for any and all attempts to replicate parts of the Coursera PGM and ML homework assignment code in Python. It was created as part of this discussion in the PGM class, which annoyingly you will be unable to access if you didn't sign up for PGM first time around, so please email for a summary if you're interested. By the time you read this there may a good summary in the archives:!forum/py-coursera

In the first instance we'll attempt to recreate the ML/PGM Octave tutorials using the Enthought SciPy/Python distribution. Here's the start of a transcript based on Prof Ng's Octave transcript

ipython session

Let me elaborate, IPython is Python with a high powered interactive shell:

which we've pulled in as part of the one click install Enthought distribution.,

This ipython_session thing now mostly complete due to some great work by Jeff Tratner.

The rest (PGM and ML assignments + infrastructure) is TODO - We'll keep working on it, but all help appreciated it. Please let us know your github id if you'd like to collaborate. Feel free to email

Many thanks to all Contributors including Jeff Tratner, Arthur Dent, Andrew Clegg and Ioura Batugowski