Tested on a recent Ubuntu installation.
Most of the book runs on python 3.4, with scikit-learn, Jupyter notebook, pandas, and their dependencies. A simple setup using Anaconda looks like this:
conda create -n LDMbook python=3.4source activate LDMbookconda install scikit-learnconda install jupyterconda install pandasconda install nltkpython -m nltk.downloader(then choose "book" and click "Download")conda install matplotlibconda install networkx
You'll need Theano, which you can get via:
pip install --upgrade theano
Do not use Anaconda to install, as the version is too old for Lasagne.
Then install Lasagne. First clone the repo with:
git clone https://github.com/Lasagne/Lasagne.git
Then, cd Lasagne to enter the directory and build with:
python3 setup.py install
Note that you should still have your source activated to do this!
Then, install nolearn from its git repo with:
pip install git+https://github.com/dnouri/nolearn.git@master#egg=nolearn==0.7.git