Skip to content
forked from probml/pyprobml

Python code for "Machine learning: a probabilistic perspective"

License

Notifications You must be signed in to change notification settings

andrewnc/pyprobml

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pyprobml

Python 3 code for the second edition of my book "Machine learning: a probabilistic perspective" (http://people.cs.ubc.ca/~murphyk/MLbook/). This is work in progress, so expect rough edges.

The main code lives in pyprobml/book. You can execute any script from the command line using 'python foo.py', or from inside a Python IDE (like Spyder).

Many of the scripts create plots. These are saved to the directory PYROBML/figures. To set this environment variable, add the following line to your .bash_profile file before opening a new terminal:

    export PYPROBML="/Users/kpmurphy/github/pyprobml" # replace with your download location

If you don't set it, the plots won't be saved. (However it is useful to set it anyway since some scripts also need to find PYPROBML/data.)

We assume you have installed numpy, scipy, matplotlib, pandas, scikit-learn. (These are all pre-installed in anaconda.) Many of the scripts rely on extra libraries which you will need to install. This will often be indicated in the suffix of the filename, as follows:

About

Python code for "Machine learning: a probabilistic perspective"

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Jupyter Notebook 62.9%
  • Python 33.9%
  • TeX 3.0%
  • Other 0.2%