For those trying to get the October 2016 version of this course working
I’ve fiddled frustratingly for quite a while trying to get just the first notebook to run. So hopefully this saves some of you some time. I was going to write script and link it, but I think going though the steps yourself helps to understand how it all comes together.
- Install CUDA 8.0 and CUDnn 6 (I haven't tried newer, so don't know about them)
- Install Anaconda, latest version (doesn't matter because it lets you run older version of Python regardless)
1. For Python 2.7, Keras 1.2.2 and working with Jeremy's original Notebooks and files
- Create a new environment in Anaconda with Python version 2.7 and (optionally) pip as a package (just in case that later, in the environment, you ensure the right pip is being used - not the root one)
- Activate/Open up that environment in a terminal
- Install the following packages
- Install bleeding edge of Theano and pygpu
- Install blas from conda-forge
- Install 1.2.2 version of Keras with pip
- Install Jupyter in current environment (at least was necessary for me in
order to get the notebook running from deep_learning environment vs root)
- Reactivate the environment
- Start the notebook
conda create -n deep_learning python=2.7 pip source activate deep_learning conda install matplotlib pillow tensorflow pandas scikit-learn bcolz sympy h5py conda install -c mila-udem -c mila-udem/label/pre theano pygpu conda install -c conda-forge blas pip install keras==1.2.2 conda install jupyter source deactivate source activate deep_learning jupyter notebook
2. For Python 3.7, Keras 2 and Roberto Castrioto updated version of notes
- Referring to the following post: Link
- Create a new environment in Anaconda and (optionally) pip as a package (just in case that later, in the environment, you ensure the right pip is being used - not the root one)
- Activate/Open up that environment in a terminal
- Install the indicated packages
- Install bleeding edge of Theano and pygpu
- Install blas from conda-forge
- Install Jupyter in current environment (at least was necessary for me in
order to get the notebook running from deep_learning environment vs root)
- Reactivate the environment
- Start the notebook
conda create -n deep_learning pip source activate deep_learning conda install matplotlib pillow tensorflow pandas scikit-learn bcolz sympy h5py keras conda install -c mila-udem -c mila-udem/label/pre theano pygpu conda install -c conda-forge blas conda install jupyter source deactivate source activate deep_learning jupyter notebook